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

Commit 7d82acb

Browse files
author
Greg Heitz
committed
remove unnecessary conditions
1 parent f4dd1ad commit 7d82acb

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/BrowserMob.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,6 @@ protected function __setProxyCapabilities($options)
8383
case 'blacklist':
8484
foreach ($data['patterns'] as $pattern) {
8585
$this->_blacklist($pattern, $data['code']);
86-
if (false === $this->response->success) {
87-
break;
88-
}
8986
}
9087
break;
9188
case 'whitelist':
@@ -101,9 +98,6 @@ protected function __setProxyCapabilities($options)
10198
case 'redirect':
10299
foreach ($data as $entry) {
103100
$this->_remapHosts($entry['domain'], $entry['ip']);
104-
if (false === $this->response->success) {
105-
break;
106-
}
107101
}
108102
break;
109103
case 'retry':
@@ -112,9 +106,6 @@ protected function __setProxyCapabilities($options)
112106
case 'basicAuth':
113107
foreach ($data as $entry) {
114108
$this->_basicAuth($entry['domain'], $entry['options']);
115-
if (false === $this->response->success) {
116-
break;
117-
}
118109
}
119110
break;
120111
default:

0 commit comments

Comments
 (0)