Skip to content

Commit 2a84728

Browse files
committed
refactor: use String() instead of literal
1 parent 328f423 commit 2a84728

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dsl/ops/func_do.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func init() {
11-
opsMap["do"] = DoOp
11+
opsMap[DoOp.String()] = DoOp
1212
}
1313

1414
type doOp struct {

dsl/ops/func_lockjson_write.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
)
1212

1313
func init() {
14-
opsMap["lockjson/write"] = LockJSONWriteOp
14+
opsMap[LockJSONWriteOp.String()] = LockJSONWriteOp
1515
}
1616

1717
type lockJSONWriteOp struct {

0 commit comments

Comments
 (0)