Skip to content

Commit 6cef041

Browse files
committed
BUG#AC-2052: TypeError when loading UPS shipping rates if no allowed shipping methods selected - issue fixed
1 parent b711ce6 commit 6cef041

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

app/code/Magento/Ups/Model/Carrier.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1350,10 +1350,8 @@ public function getResponse()
13501350
}
13511351
}
13521352
}
1353-
if (!$statuses) {
1354-
$statuses = __('Empty response');
1355-
}
1356-
return $statuses;
1353+
1354+
return $statuses ?: __('Empty response');
13571355
}
13581356

13591357
/**

0 commit comments

Comments
 (0)