Skip to content

Commit fce8182

Browse files
author
Stanislav Idolov
authored
ENGCOM-3264: Remove unnecessary conditional statements #18792
2 parents a5d9ccc + 101b340 commit fce8182

File tree

1 file changed

+1
-2
lines changed
  • app/code/Magento/User/Controller/Adminhtml/User/Role

1 file changed

+1
-2
lines changed

app/code/Magento/User/Controller/Adminhtml/User/Role/SaveRole.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ private function getSecurityCookie()
5959
{
6060
if (!($this->securityCookie instanceof SecurityCookie)) {
6161
return \Magento\Framework\App\ObjectManager::getInstance()->get(SecurityCookie::class);
62-
} else {
63-
return $this->securityCookie;
6462
}
63+
return $this->securityCookie;
6564
}
6665

6766
/**

0 commit comments

Comments
 (0)