From 383ffcfa34d284e3938517989a036da31ad42215 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Wed, 23 Jun 2021 21:38:19 +0200 Subject: 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 --- modules/private/hook.go | 2 +- modules/private/serv.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'modules') 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 } diff --git a/modules/private/serv.go b/modules/private/serv.go index e077b00ccc..659af6dff5 100644 --- a/modules/private/serv.go +++ b/modules/private/serv.go @@ -58,7 +58,6 @@ type ServCommandResults struct { // ErrServCommand is an error returned from ServCommmand. type ErrServCommand struct { Results ServCommandResults - Type string Err string StatusCode int } -- cgit v1.2.3