Fix linting errors

This commit is contained in:
Behind The Math
2018-01-09 00:44:20 -05:00
committed by BehindTheMath
parent e586440964
commit c0d64e41b8
8 changed files with 95 additions and 90 deletions

View File

@@ -6,9 +6,9 @@ var request = require("../../lib/request.js")
// just for the purposes of this test
// This polyfill is not complete; it won't show the updated location if a
// redirection occurred, but it's fine for our purposes.
if (!('responseURL' in XMLHttpRequest.prototype)) {
if (!("responseURL" in XMLHttpRequest.prototype)) {
var nativeOpen = XMLHttpRequest.prototype.open
XMLHttpRequest.prototype.open = function (method, url) {
XMLHttpRequest.prototype.open = function(method, url) {
this.responseURL = url
return nativeOpen.apply(this, arguments)
}