From 8a9c31e46e2d19c8502220da1ce0866f4624bbcf Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Sat, 13 Oct 2018 10:04:55 -0400 Subject: [PATCH] Remove usage of util.format --- sanitizer/_geo_common.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sanitizer/_geo_common.js b/sanitizer/_geo_common.js index d8393a56..dff0c46c 100644 --- a/sanitizer/_geo_common.js +++ b/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}'`); } }