Skip to content

Commit

Permalink
disabled overdraft() when feature flag is not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ascandone committed Dec 6, 2024
1 parent 571e01c commit dc4ddf4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/interpreter/interpreter.go
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,10 @@ func overdraft(
r parser.Range,
args []Value,
) (*Monetary, InterpreterError) {
if !s.OverdraftFunctionFeatureFlag {
return nil, ExperimentalFeature{FlagName: ExperimentalOverdraftFunctionFeatureFlag}
}

// TODO more precise args range location
p := NewArgsParser(args)
account := parseArg(p, r, expectAccount)
Expand Down

0 comments on commit dc4ddf4

Please sign in to comment.