mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-01-02 22:00:34 +01:00
linted /meta
This commit is contained in:
@@ -20,9 +20,9 @@ module.exports = function(Meta) {
|
||||
|
||||
callback(undefined, logs || '');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Meta.logs.clear = function(callback) {
|
||||
fs.truncate(this.path, 0, callback);
|
||||
}
|
||||
};
|
||||
};
|
||||
@@ -99,7 +99,7 @@ Templates.compile = function(callback) {
|
||||
matches = null,
|
||||
regex = /[ \t]*<!-- IMPORT ([\s\S]*?)? -->[ \t]*/;
|
||||
|
||||
while(matches = file.match(regex)) {
|
||||
while((matches = file.match(regex)) !== null) {
|
||||
var partial = "/" + matches[1];
|
||||
|
||||
if (paths[partial] && relativePath !== partial) {
|
||||
|
||||
Reference in New Issue
Block a user