Skip to content

Commit

Permalink
Fix lint error options.go:93
Browse files Browse the repository at this point in the history
"if block ends with a return statement, so drop this else and outdent
its block"
  • Loading branch information
dansimau committed Feb 9, 2016
1 parent 9c3496e commit bbc3ff8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,8 @@ func Clock(c clock.Clock) Option {
return func(r *Ringpop) error {
if c == nil {
return errors.New("clock is required")
} else {
r.clock = c
}
r.clock = c
return nil
}
}
Expand Down

0 comments on commit bbc3ff8

Please sign in to comment.