functional-tester/rpcpb: simplify "return err"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
This commit is contained in:
Gyuho Lee 2018-03-30 11:46:03 -07:00
parent d5a46abdb5
commit ae56cf014d

View File

@ -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.