remove redundant "if" before "return" statement (#823)
This commit is contained in:
parent
ba9a25e284
commit
ecd9762648
|
@ -480,11 +480,7 @@ func (c *NodeConfig) updateConfig() error {
|
|||
return err
|
||||
}
|
||||
|
||||
if err := c.updateRelativeDirsConfig(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return c.updateRelativeDirsConfig()
|
||||
}
|
||||
|
||||
// updateGenesisConfig does necessary adjustments to config object (depending on network node will be running on)
|
||||
|
|
|
@ -120,11 +120,7 @@ func (c *Client) callMethod(ctx context.Context, result interface{}, handler Han
|
|||
return nil
|
||||
}
|
||||
|
||||
if err := setResultFromRPCResponse(result, response); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return setResultFromRPCResponse(result, response)
|
||||
}
|
||||
|
||||
// handler is a concurrently safe method to get registered handler by name.
|
||||
|
|
Loading…
Reference in New Issue