Skip to content

Commit f0e082d

Browse files
lint
1 parent 5e0302a commit f0e082d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/api/v1/repo/branch.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,14 +342,14 @@ func EditBranchProtection(ctx *context.APIContext, form api.EditBranchProtection
342342
}
343343

344344
if form.EnablePush != nil {
345-
if *form.EnablePush == false {
345+
if !*form.EnablePush {
346346
protectBranch.CanPush = false
347347
protectBranch.EnableWhitelist = false
348348
protectBranch.WhitelistDeployKeys = false
349349
} else {
350350
protectBranch.CanPush = true
351351
if form.EnablePushWhitelist != nil {
352-
if *form.EnablePushWhitelist == false {
352+
if !*form.EnablePushWhitelist {
353353
protectBranch.EnableWhitelist = false
354354
protectBranch.WhitelistDeployKeys = false
355355
} else {

0 commit comments

Comments
 (0)