Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

Commit

Permalink
remove unnecessary conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Heitz committed Jul 13, 2016
1 parent f4dd1ad commit 7d82acb
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/BrowserMob.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,6 @@ protected function __setProxyCapabilities($options)
case 'blacklist':
foreach ($data['patterns'] as $pattern) {
$this->_blacklist($pattern, $data['code']);
if (false === $this->response->success) {
break;
}
}
break;
case 'whitelist':
Expand All @@ -101,9 +98,6 @@ protected function __setProxyCapabilities($options)
case 'redirect':
foreach ($data as $entry) {
$this->_remapHosts($entry['domain'], $entry['ip']);
if (false === $this->response->success) {
break;
}
}
break;
case 'retry':
Expand All @@ -112,9 +106,6 @@ protected function __setProxyCapabilities($options)
case 'basicAuth':
foreach ($data as $entry) {
$this->_basicAuth($entry['domain'], $entry['options']);
if (false === $this->response->success) {
break;
}
}
break;
default:
Expand Down

0 comments on commit 7d82acb

Please sign in to comment.