summaryrefslogtreecommitdiffstats
path: root/models/lfs.go
diff options
context:
space:
mode:
Diffstat (limited to 'models/lfs.go')
-rw-r--r--models/lfs.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/models/lfs.go b/models/lfs.go
index 90f6523d4a..c8abb1cd49 100644
--- a/models/lfs.go
+++ b/models/lfs.go
@@ -131,11 +131,11 @@ func (repo *Repository) CountLFSMetaObjects() (int64, error) {
func LFSObjectAccessible(user *User, oid string) (bool, error) {
if user.IsAdmin {
count, err := x.Count(&LFSMetaObject{Pointer: lfs.Pointer{Oid: oid}})
- return (count > 0), err
+ return count > 0, err
}
cond := accessibleRepositoryCondition(user)
count, err := x.Where(cond).Join("INNER", "repository", "`lfs_meta_object`.repository_id = `repository`.id").Count(&LFSMetaObject{Pointer: lfs.Pointer{Oid: oid}})
- return (count > 0), err
+ return count > 0, err
}
// LFSAutoAssociate auto associates accessible LFSMetaObjects