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 (opendatahub-io#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