Skip to content

Commit 39dc769

Browse files
committed
style: apply gofmt
1 parent 74c0baa commit 39dc769

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

go/compiler.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ func RelaxedReSyntax(yes bool) CompileOption {
102102
// improving performance during the evaluation of rule conditions that
103103
// contains loops.
104104
func Hoisting(yes bool) CompileOption {
105-
return func(c *Compiler) error {
106-
c.hoisting = yes
107-
return nil
108-
}
105+
return func(c *Compiler) error {
106+
c.hoisting = yes
107+
return nil
108+
}
109109
}
110110

111111
// ErrorOnSlowPattern is an option for [NewCompiler] and [Compile] that
@@ -268,9 +268,9 @@ func NewCompiler(opts ...CompileOption) (*Compiler, error) {
268268
flags |= C.YRX_RELAXED_RE_SYNTAX
269269
}
270270

271-
if c.hoisting {
272-
flags |= C.YRX_ENABLE_HOISTING
273-
}
271+
if c.hoisting {
272+
flags |= C.YRX_ENABLE_HOISTING
273+
}
274274

275275
if c.errorOnSlowPattern {
276276
flags |= C.YRX_ERROR_ON_SLOW_PATTERN

0 commit comments

Comments
 (0)