mirror of
https://gitea.com/gitea/runner.git
synced 2026-11-05 23:05:45 +00:00
Format sources with gofmt (#472)
Co-authored-by: Casey Lee <[email protected]>
This commit is contained in:
1 parent
41692c314d
commit
e6fcfed458
6 files changed
+8
-11
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user