Skip to content

Commit 1c61885

Browse files
committed
add missing return statement
1 parent 9e4d13a commit 1c61885

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/api/v1/utils/hook.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ func addHook(ctx *context.APIContext, form *api.CreateHookOption, orgID, repoID
124124

125125
if !utils.IsValidSlackChannel(channel) {
126126
ctx.Error(400, "", "Invalid slack channel name")
127+
return nil, false
127128
}
128129

129130
meta, err := json.Marshal(&models.SlackMeta{

0 commit comments

Comments
 (0)