please jshint

This commit is contained in:
Eneko Lakasta 2018-01-11 12:22:51 +01:00
parent 86e20b4b26
commit 0236935212

View File

@ -7,7 +7,8 @@ const path = require('path');
// CartoCSS properties text-wrap-width/text-wrap-character not working // CartoCSS properties text-wrap-width/text-wrap-character not working
function setICUEnvVariable() { function setICUEnvVariable() {
if (process.env.ICU_DATA === undefined) { if (process.env.ICU_DATA === undefined) {
let directory = glob.sync(path.join(__dirname, '../../..', '/node_modules/mapnik/lib/binding/*/share/mapnik/icu/')); const regexedPath = '/node_modules/mapnik/lib/binding/*/share/mapnik/icu/';
const directory = glob.sync(path.join(__dirname, '../../..', regexedPath));
if (directory && directory.length > 0) { if (directory && directory.length > 0) {
process.env.ICU_DATA = directory[0]; process.env.ICU_DATA = directory[0];