forked from TrueCloudLab/frostfs-node
[#1689] linter: Fix staticcheck warning: 'could apply De Morgan's law'
Change-Id: Ife03172bad7d517dc99771250c3308a9fc0916b3 Signed-off-by: Alexander Chuprov <a.chuprov@yadro.com>
This commit is contained in:
parent
2394ae6ce0
commit
dfdeedfc6f
2 changed files with 5 additions and 5 deletions
|
@ -154,7 +154,7 @@ func printECInfoErr(cmd *cobra.Command, err error) bool {
|
|||
if ok {
|
||||
toJSON, _ := cmd.Flags().GetBool(commonflags.JSON)
|
||||
toProto, _ := cmd.Flags().GetBool("proto")
|
||||
if !(toJSON || toProto) {
|
||||
if !toJSON && !toProto {
|
||||
cmd.PrintErrln("Object is erasure-encoded, ec information received.")
|
||||
}
|
||||
printECInfo(cmd, errECInfo.ECInfo())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue