diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-06-23 21:38:19 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-23 15:38:19 -0400 |
commit | 383ffcfa34d284e3938517989a036da31ad42215 (patch) | |
tree | de70721e8cafa239a4a6bf8585f4cbce56504621 /modules/private/hook.go | |
parent | 5930d09096b6ab8d55aabf490ed4ea27faa7f17f (diff) | |
download | gitea-383ffcfa34d284e3938517989a036da31ad42215.tar.gz gitea-383ffcfa34d284e3938517989a036da31ad42215.zip |
Small refactoring of modules/private (#15947)
* Use correct variable name.
* doer is never nil here.
* Use status code constants.
* Replaced generic map with concrete struct.
* Fixed windows lint.
* Removed unused method.
* Changed error codes.
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'modules/private/hook.go')
-rw-r--r-- | modules/private/hook.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/private/hook.go b/modules/private/hook.go index cb8fe25708..82dcaf3fc9 100644 --- a/modules/private/hook.go +++ b/modules/private/hook.go @@ -54,7 +54,7 @@ type HookOptions struct { GitAlternativeObjectDirectories string GitQuarantinePath string GitPushOptions GitPushOptions - ProtectedBranchID int64 + PullRequestID int64 IsDeployKey bool } |