mirror of
https://github.com/harness/drone.git
synced 2025-05-02 23:01:31 +08:00
add missing error check in CommitFiles (#2605)
* add missing error check in CommitFiles
This commit is contained in:
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
Block a user