Skip to content

Commit

Permalink
Patched my patch - overlooked filename var
Browse files Browse the repository at this point in the history
  • Loading branch information
grevory committed Oct 8, 2014
1 parent 7d0e81a commit 5c28b68
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lib/DfpUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,13 @@ module.exports.Money = function (value, currency) {
};

module.exports.assetByteArray = function (filename) {
var fs = require('fs');
var bitmap = fs.readFileSync(filename);

var fs = require('fs'),
bitmap;
if (!filename) {
return '';
}

bitmap = fs.readFileSync(filename);
return new Buffer(bitmap).toString('base64');
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-google-dfp",
"version": "0.1.4",
"version": "0.1.5",
"description": "Google DFP API Helper Library for NodeJS",
"main": "index.js",
"dependencies": {
Expand Down

0 comments on commit 5c28b68

Please sign in to comment.