minor generation style nits

This commit is contained in:
Sebastian McKenzie 2015-05-15 17:41:56 +01:00
parent f3f60368da
commit 7a5b140f92
2 changed files with 2 additions and 2 deletions

View File

@ -117,8 +117,9 @@ export default class Buffer {
_removeSpacesAfterLastNewline() {
var lastNewlineIndex = this.buf.lastIndexOf("\n");
if (lastNewlineIndex === -1)
if (lastNewlineIndex === -1) {
return;
}
var index = this.buf.length - 1;
while (index > lastNewlineIndex) {

View File

@ -330,7 +330,6 @@ class CodeGenerator {
_printComments(comments) {
if (this.format.compact) return;
if (!this.format.comments) return;
if (!comments || !comments.length) return;