Skip to content

Commit

Permalink
remove includes() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenplusplus committed Apr 7, 2017
1 parent 1d81e0d commit f46147c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compute/src/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -882,7 +882,7 @@ VM.prototype.waitFor = function(status, options, callback) {
timeout = Math.min(Math.max(options.timeout, 0), 600);
}

if (!VALID_STATUSES.includes(status)) {
if (VALID_STATUSES.indexOf(status) === -1) {
throw new Error('Status passed to waitFor is invalid.');
}

Expand Down

0 comments on commit f46147c

Please sign in to comment.