mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Avoid accessing body.completed if body isn't truey in saucelabs.js.
This commit is contained in:
@@ -311,7 +311,7 @@
|
|||||||
}, function(error, response, body) {
|
}, function(error, response, body) {
|
||||||
var statusCode = response && response.statusCode;
|
var statusCode = response && response.statusCode;
|
||||||
if (statusCode == 200) {
|
if (statusCode == 200) {
|
||||||
if (body.completed) {
|
if (body && body.completed) {
|
||||||
logInline('');
|
logInline('');
|
||||||
handleTestResults(body['js tests']);
|
handleTestResults(body['js tests']);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user