fix jshint errors
This commit is contained in:
parent
e09312f127
commit
65ba4d35e7
@ -43,7 +43,7 @@ File.prototype.getModuleFormatter = function (type) {
|
||||
var ModuleLoader = transform.moduleFormatters[type];
|
||||
|
||||
if (!ModuleLoader) {
|
||||
var loc = util.resolve(type)
|
||||
var loc = util.resolve(type);
|
||||
if (loc) ModuleLoader = require(loc);
|
||||
}
|
||||
|
||||
@ -104,9 +104,7 @@ File.prototype.generate = function () {
|
||||
var opts = this.opts;
|
||||
var ast = this.ast;
|
||||
|
||||
var printOpts = {
|
||||
tabWidth: 2
|
||||
};
|
||||
var printOpts = { tabWidth: 2 };
|
||||
|
||||
if (opts.sourceMap) {
|
||||
printOpts.sourceMapName = opts.sourceMapName;
|
||||
|
||||
@ -85,7 +85,6 @@ exports.XJSElement = {
|
||||
exit: function (node) {
|
||||
var callExpr = node.openingElement;
|
||||
var children = node.children;
|
||||
var args = callExpr.arguments;
|
||||
|
||||
_.each(children, function (child) {
|
||||
delete child.raw;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user