Skip to content

Commit 8bad5f4

Browse files
authored
Merge pull request #373 from Quasilyte/regexpMust
replace regexp.Compile with regexp.MustCompile
2 parents 4620584 + 1e154ea commit 8bad5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

definition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1281,7 +1281,7 @@ func (gl *NonNull) Error() error {
12811281
return gl.err
12821282
}
12831283

1284-
var NameRegExp, _ = regexp.Compile("^[_a-zA-Z][_a-zA-Z0-9]*$")
1284+
var NameRegExp = regexp.MustCompile("^[_a-zA-Z][_a-zA-Z0-9]*$")
12851285

12861286
func assertValidName(name string) error {
12871287
return invariantf(

0 commit comments

Comments
 (0)