Skip to content

Commit

Permalink
var -> const
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed May 17, 2020
1 parent e827990 commit 7fefc6c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions bin/svg2js.js
Expand Up @@ -89,11 +89,10 @@ function getFill (fillClasses, node) {
}

function f2o (name, cb) {
var full, ml;
full = path.resolve(process.cwd(), name);
const full = path.resolve(process.cwd(), name);
fs.readFile(full, { encoding: 'utf8'}, function (err, dat) {
if (err) { throw err; }
ml = onml.parse(dat);
const ml = onml.parse(dat);
const fillClasses = {
'.muted': '#aaa',
'.warning': '#f6b900',
Expand Down

0 comments on commit 7fefc6c

Please sign in to comment.