Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Chao Wang committed Jun 26, 2017
1 parent a4b07ad commit af8306e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rules/ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ func (m *MatchMode) UnmarshalYAML(unmarshal func(interface{}) error) error {
}

func parseMatchMode(value string) (MatchMode, error) {
mode := MatchMode(value)
switch mode {
switch mode := MatchMode(value); mode {
case ForwardMatch, ReverseMatch:
return mode, nil
default:
Expand Down

0 comments on commit af8306e

Please sign in to comment.