mirror of
https://github.com/xaionaro-go/streamctl.git
synced 2025-10-07 08:20:51 +08:00
Fix minor bugs discovered during alpha test
This commit is contained in:
@@ -24,6 +24,9 @@ func Eval[T any](
|
||||
}
|
||||
|
||||
value := buf.String()
|
||||
if value == "" {
|
||||
return result, nil
|
||||
}
|
||||
_, err = fmt.Sscanf(value, "%v", &result)
|
||||
if err != nil {
|
||||
return result, fmt.Errorf("unable to scan value '%v' into %T: %w", value, result, err)
|
||||
|
Reference in New Issue
Block a user