Skip to content

Commit 52ba97b

Browse files
committed
Correct js lint errors
1 parent 7f7784c commit 52ba97b

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/infer/membership.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ module.exports = function () {
240240
}
241241

242242
// var function Foo(){ function bar(){} return { bar: bar }; }
243-
if(n.FunctionDeclaration.check(path.node) &&
244-
n.BlockStatement.check(path.parent.node) &&
245-
n.FunctionDeclaration.check(path.parent.parent.node)) {
246-
inferMembershipFromIdentifiers(comment, [path.parent.parent.value.id.name]);
243+
if (n.FunctionDeclaration.check(path.node) &&
244+
n.BlockStatement.check(path.parent.node) &&
245+
n.FunctionDeclaration.check(path.parent.parent.node)) {
246+
inferMembershipFromIdentifiers(comment, [path.parent.parent.value.id.name]);
247247
}
248248

249249
return comment;

test/lib/infer/membership.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,11 +165,11 @@ test('inferMembership - explicit', function (t) {
165165

166166
t.deepEqual(_.pick(evaluate(function () {
167167
/** Foo */
168-
function Foo(){
168+
function Foo() {
169169
/** Test */
170-
function bar(){}
170+
function bar() {}
171171
return {
172-
bar: bar
172+
bar: bar
173173
};
174174
}
175175
})[1], ['memberof', 'scope']), {

0 commit comments

Comments
 (0)