Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
celinanperalta committed Oct 23, 2023
1 parent cfad49e commit 8bf0731
Showing 1 changed file with 8 additions and 15 deletions.
23 changes: 8 additions & 15 deletions packages/reporters/lsp-reporter/src/LspReporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,7 @@ const LSP_SENTINEL_FILE = path.join(BASEDIR, LSP_SENTINEL_FILENAME);
async function watchLspActive(): Promise<FSWatcher> {
// Check for lsp-server when reporter is first started
try {
await fs.promises.access(
LSP_SENTINEL_FILE,
fs.constants.F_OK,
);
await fs.promises.access(LSP_SENTINEL_FILE, fs.constants.F_OK);
lspStarted = true;
} catch {
//
Expand All @@ -91,17 +88,13 @@ async function watchLspActive(): Promise<FSWatcher> {
switch (eventType) {
case 'rename':
if (filename === LSP_SENTINEL_FILENAME) {
fs.access(
LSP_SENTINEL_FILE,
fs.constants.F_OK,
err => {
if (err) {
lspStarted = false;
} else {
lspStarted = true;
}
},
);
fs.access(LSP_SENTINEL_FILE, fs.constants.F_OK, err => {
if (err) {
lspStarted = false;
} else {
lspStarted = true;
}
});
}
}
});
Expand Down

0 comments on commit 8bf0731

Please sign in to comment.