Skip to content
Browse files

Another small optimization.

  • Loading branch information...
1 parent 7d098fa commit 432d00de19d9bbc2d937935d3f8fa7e2c42b215c @markstory markstory committed
Showing with 5 additions and 6 deletions.
  1. +5 −6 lib/Cake/Utility/Hash.php
View
11 lib/Cake/Utility/Hash.php
@@ -276,15 +276,14 @@ protected static function _simpleOp($op, $data, $path, $values = null) {
} elseif ($op === 'remove') {
if ($i === $last) {
unset($_list[$key]);
- } else {
- if (!isset($_list[$key])) {
- return $data;
- }
- $_list =& $_list[$key];
+ return $data;
+ }
+ if (!isset($_list[$key])) {
+ return $data;
}
+ $_list =& $_list[$key];
}
}
- return $data;
}
/**

0 comments on commit 432d00d

Please sign in to comment.
Something went wrong with that request. Please try again.