Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mmurrell-r7 committed Jun 28, 2024
1 parent d7f8360 commit e0eccc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/containers/refresh-jit.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async function refreshJit(session) {
r = new Reloader({
name: profileName,
async callback() {
await refreshJitCallback(profileName, session).catch(e => console.log(e));
await refreshJitCallback(profileName, session).catch((e) => { return e });

Check failure on line 64 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 64 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing semicolon

Check failure on line 64 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 64 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing semicolon
},
interval: (session.duration / 2) * 1000,
role: session.roleConfigId,
Expand All @@ -73,14 +73,14 @@ async function refreshJit(session) {
r.role = session.roleConfigId;
r.setCallback(
async () => {
await refreshJitCallback(profileName, session).catch(e => console.log(e));
await refreshJitCallback(profileName, session).catch((e) => { return e });

Check failure on line 76 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 76 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing semicolon

Check failure on line 76 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 76 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing semicolon
},
);
r.role = session.roleConfigId;
}
r.restart();
}
return refreshJitCallback(profileName, session).catch(e => console.log(e));
return refreshJitCallback(profileName, session).catch((e) => { return e });

Check failure on line 83 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 83 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing semicolon

Check failure on line 83 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`

Check failure on line 83 in src/main/containers/refresh-jit.js

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing semicolon
}

module.exports = {
Expand Down

0 comments on commit e0eccc7

Please sign in to comment.