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
|
@ -74,11 +74,7 @@ func (n *Writer) Notify(topic string, address oid.Address) error {
|
|||
}
|
||||
|
||||
_, err := n.js.Publish(topic, []byte(address.EncodeToString()), nats.MsgId(messageID))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
// New creates new Writer.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue