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

Commit

Permalink
Fixing some final nits
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Gromov committed Aug 22, 2017
1 parent b66f596 commit 552daef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion rules/mapping.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ func (mc *mappingRule) addSnapshot(
rawFilters map[string]string,
policies []policy.Policy,
cutoverTime int64,

) error {
snapshot := newMappingRuleSnapshotFromFields(
name,
Expand Down
2 changes: 1 addition & 1 deletion rules/ruleset.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ func (rs *ruleSet) ActiveSet(timeNanos int64) Matcher {
}

func (rs *ruleSet) ToMutableRuleSet() MutableRuleSet {
return MutableRuleSet(rs)
return rs
}

// resolvePolicies resolves the conflicts among policies if any, following the rules below:
Expand Down
2 changes: 1 addition & 1 deletion rules/ruleset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ func initMutableTest() (MutableRuleSet, *ruleSet, RuleSetUpdateHelper, error) {
return mutable, rs, NewRuleSetUpdateHelper(10), err
}

// NewMutableRuleSetFromSchema creates a new MutableRuleSet from a schema object.
// newMutableRuleSetFromSchema creates a new MutableRuleSet from a schema object.
func newMutableRuleSetFromSchema(version int, rs *schema.RuleSet) (MutableRuleSet, error) {
// Takes a blank Options stuct because none of the mutation functions need the options.
roRuleSet, err := NewRuleSetFromSchema(version, rs, NewOptions())
Expand Down

0 comments on commit 552daef

Please sign in to comment.