mirror of
https://github.com/go-gitea/gitea
synced 2025-07-03 09:07:19 +00:00
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>
This commit is contained in:
@ -54,7 +54,7 @@ type HookOptions struct {
|
||||
GitAlternativeObjectDirectories string
|
||||
GitQuarantinePath string
|
||||
GitPushOptions GitPushOptions
|
||||
ProtectedBranchID int64
|
||||
PullRequestID int64
|
||||
IsDeployKey bool
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user