Skip to content

Commit

Permalink
fix(view sub-generator): fix missing newline at end-of-file
Browse files Browse the repository at this point in the history
  • Loading branch information
cueedee committed May 7, 2015
1 parent 9d1d0f1 commit 2add7f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion generators/view/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ var ViewGenerator = generators.Base.extend(
//
this.conflicter.force = true;

this.write( viewsPath, views + '\n' + statement );
var pad = (( views.length && views.slice( -1 ) !== '\n' ) ? '\n' : '' );

this.write( viewsPath, views + pad + statement + '\n' );
}
}
}
Expand Down

0 comments on commit 2add7f6

Please sign in to comment.