Skip to content

Commit

Permalink
Fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Felquis committed Feb 3, 2017
1 parent db1d1ee commit 64b7129
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/boleto.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
var fs = require('fs')
var ejs = require('ejs')
var formatters = require('./formatters')
var barcode = require('./barcode')
Expand Down Expand Up @@ -84,9 +83,13 @@ Boleto.prototype.renderHTML = function (callback) {

renderOptions['boleto']['linha_digitavel_hash'] = hashString(renderOptions['boleto']['linha_digitavel']).toString()

var html = ejs.renderFile(__dirname + '/../assets/layout.ejs', renderOptions, {
ejs.renderFile(path.join(__dirname, '/../assets/layout.ejs'), renderOptions, {
cache: true
}, function (err, html) {
if (err) {
throw new Error(err)
}

callback(html)
})
}
Expand Down

0 comments on commit 64b7129

Please sign in to comment.