Skip to content

Commit 59f2fb1

Browse files
committed
update comment
1 parent c8fcf2f commit 59f2fb1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/repo/setting_protected_branch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ func SettingsProtectedBranchPost(ctx *context.Context) {
167167

168168
// FIXME: If a new ProtectBranch has a duplicate RuleName, an error should be returned.
169169

170-
// Currently an existing ProtectBranch will be updated according to the new one has the same name.
170+
// Currently, if a new ProtectBranch with the same name is created,
171+
// the existing ProtectBranch will be updated.
171172
// But we cannot modify this logic now because many unit tests rely on it.
172173

173174
var err error

0 commit comments

Comments
 (0)