Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
use mustCompile as we know the regexp is well formed
Browse files Browse the repository at this point in the history
  • Loading branch information
woodsaj committed Nov 9, 2016
1 parent 1a665a5 commit e658f06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion input/carbon/carbon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ func Test_HandleMessage(t *testing.T) {
s := persister.Schema{
Name: "default",
RetentionStr: "1s:1d",
Pattern: regexp.MustCompile(".*"),
}
s.Pattern, err = regexp.Compile(".*")
if err != nil {
panic(err)
}
Expand Down

0 comments on commit e658f06

Please sign in to comment.