Skip to content

Commit d53a676

Browse files
authored
ENGCOM-3645: fix: immediately return value #19673
2 parents a9ac04a + af1c99f commit d53a676

File tree

1 file changed

+3
-2
lines changed
  • app/code/Magento/AdminNotification/Model/ResourceModel

1 file changed

+3
-2
lines changed

app/code/Magento/AdminNotification/Model/ResourceModel/Inbox.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
namespace Magento\AdminNotification\Model\ResourceModel;
77

88
/**
9+
* Inbox resource model
10+
*
911
* @api
1012
* @since 100.0.2
1113
*/
@@ -77,8 +79,7 @@ public function getNoticeStatus(\Magento\AdminNotification\Model\Inbox $object)
7779
'is_read=?',
7880
0
7981
);
80-
$return = $connection->fetchPairs($select);
81-
return $return;
82+
return $connection->fetchPairs($select);
8283
}
8384

8485
/**

0 commit comments

Comments
 (0)