Skip to content

Commit ee47ef6

Browse files
committed
Drop the once pointer
1 parent 8bc2dd3 commit ee47ef6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/js/jsmodules.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ func (rm *removedModule) NewModuleInstance(vu modules.VU) modules.Instance {
109109
}
110110

111111
type warnExperimentalModule struct {
112-
once *sync.Once
112+
once sync.Once
113113
msg string
114114
base modules.Module
115115
}
@@ -118,7 +118,7 @@ func newWarnExperimentalModule(base modules.Module, msg string) modules.Module {
118118
return &warnExperimentalModule{
119119
msg: msg,
120120
base: base,
121-
once: &sync.Once{},
121+
once: sync.Once{},
122122
}
123123
}
124124

0 commit comments

Comments
 (0)