Skip to content

Commit

Permalink
refactor: Delete variable declarations
Browse files Browse the repository at this point in the history
Signed-off-by: Matsumoto <toshi.matsumoto.3n@gmail.com>
  • Loading branch information
toshi1127 committed May 8, 2021
1 parent bb6e63b commit 12e6ca7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/rules/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -391,8 +391,7 @@ func (m *Manager) Update(evalInterval time.Duration, files []string) error {
}

// Rules returns specified rules from manager. This is used by gRPC and locally for HTTP and UI purposes.
func (m *Manager) Rules(r *rulespb.RulesRequest, s rulespb.Rules_RulesServer) error {
var err error
func (m *Manager) Rules(r *rulespb.RulesRequest, s rulespb.Rules_RulesServer) (err error) {
groups := m.protoRuleGroups()

pgs := make([]*rulespb.RuleGroup, 0, len(groups))
Expand Down

0 comments on commit 12e6ca7

Please sign in to comment.