linted /meta

v1.18.x
psychobunny 10 years ago
parent b0628c2df8
commit 0c8e0ca46f

@ -20,9 +20,9 @@ module.exports = function(Meta) {
callback(undefined, logs || ''); callback(undefined, logs || '');
}); });
} };
Meta.logs.clear = function(callback) { Meta.logs.clear = function(callback) {
fs.truncate(this.path, 0, callback); fs.truncate(this.path, 0, callback);
} };
}; };

@ -99,7 +99,7 @@ Templates.compile = function(callback) {
matches = null, matches = null,
regex = /[ \t]*<!-- IMPORT ([\s\S]*?)? -->[ \t]*/; regex = /[ \t]*<!-- IMPORT ([\s\S]*?)? -->[ \t]*/;
while(matches = file.match(regex)) { while((matches = file.match(regex)) !== null) {
var partial = "/" + matches[1]; var partial = "/" + matches[1];
if (paths[partial] && relativePath !== partial) { if (paths[partial] && relativePath !== partial) {

Loading…
Cancel
Save