fixed fmt & lint
the build failed Details

This commit is contained in:
kolaente 2018-12-04 10:53:46 +01:00
parent 17a2c2dc0e
commit 0b2e2adb8d
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 8 additions and 7 deletions

View File

@ -37,6 +37,7 @@ type Namespace struct {
web.Rights `xorm:"-" json:"-"`
}
// PseudoNamespace is a pseudo namespace used to hold shared lists
var PseudoNamespace = Namespace{
ID: -1,
Name: "Shared Lists",
@ -63,14 +64,14 @@ func GetNamespaceByID(id int64) (namespace Namespace, err error) {
return namespace, err
}
exists, err := x.Get(&namespace)
if err != nil {
return namespace, err
}
exists, err := x.Get(&namespace)
if err != nil {
return namespace, err
}
if !exists {
return namespace, ErrNamespaceDoesNotExist{ID: id}
}
if !exists {
return namespace, ErrNamespaceDoesNotExist{ID: id}
}
// Get the namespace Owner
namespace.Owner, err = GetUserByID(namespace.OwnerID)