Skip to content

Commit f20cfd3

Browse files
build error: should omit comparison to bool constant
Signed-off-by: David Svantesson <[email protected]>
1 parent 81a6135 commit f20cfd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

models/org.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ func IsPublicMembership(orgID, uid int64) (bool, error) {
341341
}
342342

343343
func CanCreateOrgRepo(orgID, uid int64) (bool, error) {
344-
if owner, err := IsOrganizationOwner(orgID, uid); owner == true || err != nil {
344+
if owner, err := IsOrganizationOwner(orgID, uid); owner || err != nil {
345345
return owner, err
346346
}
347347
return x.

0 commit comments

Comments
 (0)