mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 10:53:34 +00:00
cleanup: address ifshort linter issues
This commit addresses ifshort linter issues which checks if short syntax for if-statements is possible. updates: #1586 Signed-off-by: Rakshith R <rar@redhat.com>
This commit is contained in:
@ -64,8 +64,7 @@ func TestJoinErrors(t *testing.T) {
|
||||
assertErrorIs(x, errFoo, false)
|
||||
assertErrorIs(x, errBar, true)
|
||||
s1 := "w{w{w{x}}: w{w{foo: bar}}}"
|
||||
s2 := w1w2Xw2FooBar.Error()
|
||||
if s1 != s2 {
|
||||
if s2 := w1w2Xw2FooBar.Error(); s1 != s2 {
|
||||
t.Errorf("%s != %s", s1, s2)
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user