1
0

Fixed lint + fmt

This commit is contained in:
konrad
2018-07-10 14:02:23 +02:00
committed by kolaente
parent c8622b0029
commit 237874eda6
25 changed files with 94 additions and 70 deletions

View File

@ -1,5 +1,6 @@
package models
// Delete implements the delete method of CRUDable
func (l *List) Delete(id int64, doer *User) (err error) {
// Check if the list exists
list, err := GetListByID(id)
@ -14,7 +15,7 @@ func (l *List) Delete(id int64, doer *User) (err error) {
}
if !list.IsAdmin(&user) {
return ErrNeedToBeListAdmin{ListID:id, UserID:user.ID}
return ErrNeedToBeListAdmin{ListID: id, UserID: user.ID}
}
// Delete the list