Skip to content
This repository was archived by the owner on Aug 7, 2023. It is now read-only.

Commit 5b4b67c

Browse files
committed
chore: inline lintertslintDeps
1 parent 431a26a commit 5b4b67c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/main.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,11 @@ const waitOnIdle = async () => new Promise((resolve) => {
2929

3030
const TsLintPackage = {
3131
activate() {
32-
let depsCallbackID;
33-
const lintertslintDeps = () => {
32+
const depsCallbackID = window.requestIdleCallback(() => {
3433
idleCallbacks.delete(depsCallbackID);
3534
// Install package dependencies
3635
require('atom-package-deps').install('linter-tslint');
37-
};
38-
depsCallbackID = window.requestIdleCallback(lintertslintDeps);
36+
});
3937
idleCallbacks.add(depsCallbackID);
4038

4139
this.subscriptions = new CompositeDisposable();

0 commit comments

Comments
 (0)