Skip to content

Commit 6534ef8

Browse files
committed
Fix low hanging eslint issues.
1 parent 1c3e4de commit 6534ef8

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ module.exports = {
5151
"@typescript-eslint/no-unsafe-member-access": "warn",
5252
"@typescript-eslint/no-unsafe-return": "warn",
5353
"@typescript-eslint/restrict-template-expressions": "warn",
54-
"no-constant-condition": "warn",
5554
},
5655
},
5756
{

integration_test/functions/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export const integrationTests: any = functions
159159
await admin.database().ref(`testRuns/${testId}/timestamp`).set(Date.now());
160160
const testIdRef = admin.database().ref(`testRuns/${testId}`);
161161
functions.logger.info("testId is: ", testId);
162-
fs.writeFile("/tmp/" + testId + ".txt", "test", () => undefined);
162+
fs.writeFile(`/tmp/${testId}.txt`, "test", () => undefined);
163163
try {
164164
const accessToken = await admin.credential.applicationDefault().getAccessToken();
165165
await Promise.all([

scripts/bin-test/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function retryUntil(
6565
}, timeoutMs);
6666
});
6767
const retry = (async () => {
68-
while (true) {
68+
for (;;) {
6969
if (await fn()) {
7070
break;
7171
}

src/common/providers/tasks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,12 @@ export function onDispatchHandler<Req = any>(
143143
};
144144
// For some reason the type system isn't picking up that the handler
145145
// is a one argument function.
146-
await (handler as any)(arg);
146+
await (handler as v2TaskHandler<Req>)(arg);
147147
}
148148

149149
res.status(204).end();
150150
} catch (err) {
151-
let httpErr = err;
151+
let httpErr: https.HttpsError = err;
152152
if (!(err instanceof https.HttpsError)) {
153153
// This doesn't count as an 'explicit' error.
154154
logger.error("Unhandled error", err);

0 commit comments

Comments
 (0)