Replace deprecated URL parser

Fix up various linter errors
This commit is contained in:
Lovell Fuller
2019-09-22 22:46:28 +01:00
parent 14af0bda61
commit 9c7f6fcb2b
9 changed files with 402 additions and 397 deletions

View File

@@ -517,7 +517,7 @@ const formats = new Map([
function toFormat (format, options) {
const actualFormat = formats.get(is.object(format) && is.string(format.id) ? format.id : format);
if (!actualFormat) {
throw is.invalidParameterError('format', `one of: ${[...formats.keys()].join(`, `)}`, format);
throw is.invalidParameterError('format', `one of: ${[...formats.keys()].join(', ')}`, format);
}
return this[actualFormat](options);
}