mirror of https://github.com/harness/drone.git
add missing error check in CommitFiles (#2605)
* add missing error check in CommitFilespull/3545/head
parent
55d2b1dee3
commit
ffe585f8c4
|
@ -144,6 +144,9 @@ func (s *Service) CommitFiles(ctx context.Context, params *CommitFilesParams) (C
|
|||
}
|
||||
|
||||
refUpdater, err := hook.CreateRefUpdater(s.hookClientFactory, params.EnvVars, repoPath, branchRef)
|
||||
if err != nil {
|
||||
return CommitFilesResponse{}, fmt.Errorf("failed to create ref updater: %w", err)
|
||||
}
|
||||
|
||||
// run the actions in a shared repo
|
||||
|
||||
|
|
Loading…
Reference in New Issue