-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
webhook: refactor with switch and helpers (#1076)
Prepare to implement deletion check. - Use switch to select supported requests, easier to add Delete then. - Remove misleading messages for the allowed case, the last one only is in use. - Use helpers to count and to compare, there will be the same logic for deletion check. - Tune allowed message. - Use go style case with several variants instead of C-style. Signed-off-by: Yauheni Kaliuta <[email protected]>
- Loading branch information
Showing
1 changed file
with
34 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters