Skip to content

Commit

Permalink
fix eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fewieden committed Apr 4, 2021
1 parent b8b5117 commit 887bdc2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions MMM-Fuel.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* @see https://github.com/fewieden/MMM-Fuel
*/

/* global google */
/* global google Module Log config */

/**
* @external Module
Expand Down Expand Up @@ -421,12 +421,10 @@ Module.register('MMM-Fuel', {
return part.value;
}).join('');
});
this.nunjucksEnvironment().addFilter('formatDistance', distance => {
return new Intl.NumberFormat(config.locale, {
style: 'unit',
unit: this.priceList.unit,
maximumFractionDigits: 1
}).format(distance);
});
this.nunjucksEnvironment().addFilter('formatDistance', distance => new Intl.NumberFormat(config.locale, {
style: 'unit',
unit: this.priceList.unit,
maximumFractionDigits: 1
}).format(distance));
}
});

0 comments on commit 887bdc2

Please sign in to comment.