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
|
@ -61,8 +61,8 @@ type expressionEvaluator struct {
|
|||
}
|
||||
|
||||
func (ee *expressionEvaluator) Evaluate(in string) (string, bool, error) {
|
||||
if strings.HasPrefix(in, `secrets.`){
|
||||
in = `secrets.`+strings.ToUpper(strings.SplitN(in, `.`, 2)[1])
|
||||
if strings.HasPrefix(in, `secrets.`) {
|
||||
in = `secrets.` + strings.ToUpper(strings.SplitN(in, `.`, 2)[1])
|
||||
}
|
||||
re := ee.Rewrite(in)
|
||||
if re != in {
|
||||
|
@ -84,7 +84,7 @@ func (ee *expressionEvaluator) Evaluate(in string) (string, bool, error) {
|
|||
return valAsString, val.IsString(), err
|
||||
}
|
||||
|
||||
func (ee *expressionEvaluator) Interpolate(in string) string{
|
||||
func (ee *expressionEvaluator) Interpolate(in string) string {
|
||||
interpolated, _ := ee.InterpolateWithStringCheck(in)
|
||||
return interpolated
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue