cleanup
the build was successful Details

This commit is contained in:
kolaente 2018-10-05 19:17:39 +02:00
parent 3819927dd2
commit 53a7f2e6a7
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 12 deletions

View File

@ -48,18 +48,7 @@ func GetNamespaceByID(id int64) (namespace Namespace, err error) {
// ReadOne gets one namespace
func (n *Namespace) ReadOne() (err error) {
getN := Namespace{}
exists, err := x.ID(n.ID).Get(&getN)
if err != nil {
return
}
if !exists {
return ErrNamespaceDoesNotExist{ID: n.ID}
}
*n = getN
*n, err = GetNamespaceByID(n.ID)
return
}