mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 18:43: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:
@ -27,8 +27,7 @@ func upgradeCSI(version string) error {
|
||||
|
||||
// upgradeAndDeployCSI upgrades the CSI to a specific release.
|
||||
func upgradeAndDeployCSI(version, testtype string) error {
|
||||
err := upgradeCSI(version)
|
||||
if err != nil {
|
||||
if err := upgradeCSI(version); err != nil {
|
||||
return fmt.Errorf("failed to upgrade driver %w", err)
|
||||
}
|
||||
switch testtype {
|
||||
|
Reference in New Issue
Block a user