Browse Source

Remove usage of util.format

pull/1207/head
Julian Simioni 6 years ago
parent
commit
8a9c31e46e
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 3
      sanitizer/_geo_common.js

3
sanitizer/_geo_common.js

@ -2,7 +2,6 @@
* helper sanitizer methods for geo parameters
*/
var groups = require('./_groups'),
util = require('util'),
check = require('check-types'),
wrap = require('./wrap'),
_ = require('lodash');
@ -124,7 +123,7 @@ function sanitize_coord( key, clean, raw, latlon_is_required ) {
clean[key] = parsedValue;
}
else if (latlon_is_required) {
throw new Error( util.format( 'missing param \'%s\'', key ) );
throw new Error(`missing param '${key}'`);
}
}

Loading…
Cancel
Save