mirror of
https://github.com/nasa/openmct.git
synced 2025-06-21 16:49:42 +00:00
Fixed jslint errors
This commit is contained in:
@ -120,9 +120,8 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define
|
|||||||
|
|
||||||
function strip() {
|
function strip() {
|
||||||
var patternsToStrip = [
|
var patternsToStrip = [
|
||||||
"^<!--"
|
"^<!--"],
|
||||||
]
|
transform = new stream.Transform({ objectMode: true });
|
||||||
var transform = new stream.Transform({ objectMode: true });
|
|
||||||
transform._transform = function (chunk, encoding, done) {
|
transform._transform = function (chunk, encoding, done) {
|
||||||
//If chunk does not match pattern, keep it, else discard (by not
|
//If chunk does not match pattern, keep it, else discard (by not
|
||||||
// pushing into stream)
|
// pushing into stream)
|
||||||
@ -130,7 +129,7 @@ GLOBAL.window = GLOBAL.window || GLOBAL; // nomnoml expects window to be define
|
|||||||
this.push(chunk);
|
this.push(chunk);
|
||||||
}
|
}
|
||||||
done();
|
done();
|
||||||
}
|
};
|
||||||
return transform;
|
return transform;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user