functional-tester/rpcpb: simplify "return err"
@@ -86,11 +86,8 @@ 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
-}
// RevHash fetches current revision and hash on this member.
func (m *Member) RevHash() (int64, int64, error) {
