Skip to content

Commit

Permalink
chore: remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
JounQin committed Mar 18, 2024
1 parent affcb3e commit 2197116
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"node": "18",
"installCommand": "codesandbox:install",
"sandboxes": []
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
"scripts": {
"build": "tsc -p src",
"clean": "rimraf lib",
"codesandbox:install": "yarn --ignore-engines",
"lint": "run-p lint:*",
"lint:docs": "yarn update:eslint-docs --check",
"lint:es": "eslint . --cache",
Expand Down
2 changes: 1 addition & 1 deletion src/rules/newline-after-import.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export = createRule<[Options?], MessageId>({
return
}

if (nextComment && nextComment !== undefined) {
if (nextComment) {
commentAfterImport(node, nextComment)
} else if (
nextNode &&
Expand Down

0 comments on commit 2197116

Please sign in to comment.