mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
Format sources with gofmt (#472)
Co-authored-by: Casey Lee <cplee@nektos.com>
This commit is contained in:
parent
7987e67c0a
commit
035108c9f1
6 changed files with 8 additions and 11 deletions
|
@ -101,14 +101,12 @@ func (sc *StepContext) mergeEnv() map[string]string {
|
|||
return env
|
||||
}
|
||||
|
||||
|
||||
func (sc *StepContext) interpolateEnv(exprEval ExpressionEvaluator) {
|
||||
for k, v := range sc.Env {
|
||||
sc.Env[k] = exprEval.Interpolate(v)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
func (sc *StepContext) setupEnv(ctx context.Context) (ExpressionEvaluator, error) {
|
||||
rc := sc.RunContext
|
||||
sc.Env = sc.mergeEnv()
|
||||
|
@ -125,7 +123,6 @@ func (sc *StepContext) setupEnv(ctx context.Context) (ExpressionEvaluator, error
|
|||
return evaluator, nil
|
||||
}
|
||||
|
||||
|
||||
func (sc *StepContext) setupShellCommand() common.Executor {
|
||||
rc := sc.RunContext
|
||||
step := sc.Step
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue