Skip to content

Commit

Permalink
Use pointer receiver for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaos committed Apr 1, 2021
1 parent 25286d4 commit 6439bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func (c *Config) CompileRegexp() error {
return nil
}

func (c Config) findRule(path string) *Rule {
func (c *Config) findRule(path string) *Rule {
for _, rule := range c.Rules {
if rule.Regexp.MatchString(path) {
return rule
Expand All @@ -38,7 +38,7 @@ func (c Config) findRule(path string) *Rule {
return nil
}

func (c Config) AliasFor(path string) (string, bool) {
func (c *Config) AliasFor(path string) (string, bool) {
rule := c.findRule(path)
if rule == nil {
return "", false
Expand Down

0 comments on commit 6439bcc

Please sign in to comment.