refactor: remove unused parameters (#28203)

PR Close #28203
This commit is contained in:
Daniel Ruf 2019-01-17 12:34:30 +01:00 committed by Alex Rickabaugh
parent cf8770f3cc
commit b9854e582f
2 changed files with 3 additions and 4 deletions

View File

@ -143,8 +143,7 @@ if (process.env['WEB_TEST_METADATA']) {
binary: chromeBin,
args: args,
}
},
'is determined by the browsers attribute');
});
}
if (webTestNamedFiles['FIREFOX']) {
// TODO(gmagolan): implement firefox support for protractor

View File

@ -146,7 +146,7 @@ module.exports.stringify = function(obj, quoteKeys) {
objStack.push(obj_part);
for (var prop in obj_part) {
if (obj_part.hasOwnProperty(prop)) {
var value = internalStringify(obj_part, prop, false);
var value = internalStringify(obj_part, prop);
if (typeof value !== 'undefined' && value !== null) {
nonEmpty = true;
key = isWord(prop) && !quoteKeys ? prop : escapeString(prop, quoteKeys);
@ -173,7 +173,7 @@ module.exports.stringify = function(obj, quoteKeys) {
// but when top-level, return undefined
var topLevelHolder = {'': obj};
if (obj === undefined) {
return getReplacedValueOrUndefined(topLevelHolder, '', true);
return getReplacedValueOrUndefined(topLevelHolder, '');
}
return internalStringify(topLevelHolder, '');
};