Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
@@ -86,10 +86,7 @@ func (m *Member) Defrag() error {
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
_, err = cli.Defragment(ctx, m.EtcdClientEndpoint)
cancel()
- if err != nil {
- return err
- }
- return nil
+ return err
}
// RevHash fetches current revision and hash on this member.