Browse Source

functional-tester/rpcpb: simplify "return err"

Signed-off-by: Gyuho Lee <gyuhox@gmail.com>
Gyuho Lee 7 years ago
parent
commit
ae56cf014d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      tools/functional-tester/rpcpb/member.go

+ 1 - 4
tools/functional-tester/rpcpb/member.go

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