Fix duplicate return statement on simple templates
This commit is contained in:
@@ -248,7 +248,7 @@ JavaScriptCompiler.prototype = {
|
||||
if (bufferStart) {
|
||||
bufferStart.prepend('return ');
|
||||
bufferEnd.add(';');
|
||||
} else {
|
||||
} else if (!sourceSeen) {
|
||||
this.source.push('return "";');
|
||||
}
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user