mirror of
https://gitea.com/gitea/act_runner.git
synced 2026-03-23 15:25:03 +01:00
auto adjust code
This commit is contained in:
@@ -51,7 +51,7 @@ const (
|
||||
type Token struct {
|
||||
Kind TokenKind
|
||||
Raw string
|
||||
Value interface{}
|
||||
Value any
|
||||
Index int
|
||||
}
|
||||
|
||||
@@ -256,7 +256,7 @@ func (l *Lexer) readNumber() *Token {
|
||||
}
|
||||
}
|
||||
// Try to parse as float64
|
||||
var val interface{} = raw
|
||||
var val any = raw
|
||||
if f, err := strconv.ParseFloat(raw, 64); err == nil {
|
||||
val = f
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user