forked from TrueCloudLab/frostfs-node
[#607] *: Remove redundant if on error returns
Semantic patch: ``` @@ @@ -if err != nil { return err } -return nil +return err ``` Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
This commit is contained in:
parent
5a51b78946
commit
a8de37c8a2
7 changed files with 8 additions and 39 deletions
|
@ -101,9 +101,5 @@ func (c *Client) UnsubscribeAll() error {
|
|||
}
|
||||
|
||||
err := c.client.UnsubscribeAll()
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue