Skip to content

Commit

Permalink
Remove extraneous else block
Browse files Browse the repository at this point in the history
  • Loading branch information
backspace authored Nov 20, 2019
1 parent 241ed98 commit e5a2d13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions nomad/acl_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,8 @@ func (a *ACL) GetPolicy(args *structs.ACLPolicySpecificRequest, reply *structs.S

if err != nil {
return err
} else {
reply.Policy.RulesJSON = rules
}
reply.Policy.RulesJSON = rules
} else {
// Use the last index that affected the policy table
index, err := state.Index("acl_policy")
Expand Down

0 comments on commit e5a2d13

Please sign in to comment.