Skip to content

Commit 5bd8d6a

Browse files
committed
fix: change noRollback to NoRollback
1 parent ad35736 commit 5bd8d6a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

dsl/op/array.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ func (*arrayOp) String() string {
2222

2323
// Execute executes "$array" operation
2424
func (*arrayOp) Expand(args []types.Value) (types.Value, func(), error) {
25-
return types.NewArray(args, types.AnyValue), noRollback, nil
25+
return types.NewArray(args, types.AnyValue), NoRollback, nil
2626
}

dsl/op/expand_macro.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func (*expandMacroOp) String() string {
2525
// Execute executes "$expand-macro" operation
2626
func (*expandMacroOp) Expand(args []types.Value) (types.Value, func(), error) {
2727
if err := signature(types.AnyValue).check(args); err != nil {
28-
return nil, noRollback, err
28+
return nil, NoRollback, err
2929
}
3030
return args[0].Eval(context.Background())
3131
}

dsl/op/invert.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func (*invertOp) String() string {
2323
// Execute executes "$invert" operation
2424
func (*invertOp) Expand(args []types.Value) (types.Value, func(), error) {
2525
if err := signature(types.AnyValue).check(args); err != nil {
26-
return nil, noRollback, err
26+
return nil, NoRollback, err
2727
}
2828
val, err := args[0].Invert()
29-
return val, noRollback, err
29+
return val, NoRollback, err
3030
}

dsl/op/rollback.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
package op
22

3-
var noRollback = func() {}
3+
// NoRollback is an empty function.
4+
// intepreter can skip this function.
5+
var NoRollback = func() {}

0 commit comments

Comments
 (0)