Skip to content

Commit

Permalink
blog: Do not pass undefined to path.join
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Mar 1, 2013
1 parent 0928a52 commit 687522c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/blog/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function buildPermalink(key, post) {

function writeFile(uri, data, templ) {
if (!templ) templ = template;
data.uri = path.join(data.uri);
if (data.uri)
data.uri = path.join(data.uri);
uri = path.join(uri);
var contents = templ(data);
var outdir = path.join(output, uri);
Expand Down

0 comments on commit 687522c

Please sign in to comment.