refactor: simplify action function signatures (#1083)
This change reduces the interfaces by removing obsolete parameters from functions. Obsolete parameters does not means unused ones, but parameters which could be retrieved from other parameters instead. This should simplify logic and maintainability for these functions. Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
@@ -86,7 +86,7 @@ func (sar *stepActionRemote) main() common.Executor {
|
||||
log.Debugf("Read action %v from '%s'", sar.action, "Unknown")
|
||||
return err
|
||||
},
|
||||
sar.runAction(sar, actionDir, remoteAction.Path, remoteAction.Repo, remoteAction.Ref, false),
|
||||
sar.runAction(sar, actionDir, remoteAction),
|
||||
)(ctx)
|
||||
})
|
||||
}
|
||||
|
Reference in New Issue
Block a user