Skip to content

Commit

Permalink
fix golint warning
Browse files Browse the repository at this point in the history
fix gofmt warning
  • Loading branch information
middelink committed Aug 30, 2019
1 parent 1216401 commit d51cbde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ type Config struct {
Port uint16
}
RegExps struct {
RE []string `json:",omitempty"`
Test_RE []string `json:",omitempty"`
RE []string `json:",omitempty"`
TestRE []string `json:",omitempty"`
}
re []regexps
Mikrotik map[string]*ConfigMikrotik `json:",omitempty"`
Expand Down Expand Up @@ -126,7 +126,7 @@ func (c *Config) setupREs() error {
}
}

for _, v := range c.RegExps.Test_RE {
for _, v := range c.RegExps.TestRE {
found := false
for _, re := range c.re {
if res := re.RE.FindStringSubmatch(v); len(res) > 0 {
Expand Down
2 changes: 1 addition & 1 deletion testdata/config_test_bad_testre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ in: |
[regexps]
re = "Dummy regexp for (?P<IP>\\S+)"
test-re = "Something not matched"
testre = "Something not matched"
[Mikrotik "MT-1"]
address = 1.2.3.4
Expand Down

0 comments on commit d51cbde

Please sign in to comment.