Skip to content

Commit 21d784c

Browse files
committed
fix: update lint command by removing lint-shell and improve null check in identities test
1 parent 7bae782 commit 21d784c

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
"test": "node ./scripts/test.mjs",
7777
"lint": "matrixai-lint",
7878
"lintfix": "matrixai-lint --fix",
79-
"lint-shell": "find ./src ./tests ./scripts -type f -regextype posix-extended -regex '.*\\.(sh)' -exec shellcheck {} +",
8079
"docs": "shx rm -rf ./docs && typedoc --gitRevision master --tsconfig ./tsconfig.build.json --out ./docs src",
8180
"bench": "tsc -p ./tsconfig.build.json && shx rm -rf ./benches/results && tsx ./benches/index.ts"
8281
},

tests/client/handlers/identities.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1752,7 +1752,7 @@ describe('identitiesInvite', () => {
17521752
.mockImplementation(async (payload, _, func) => {
17531753
const token = Token.fromPayload(payload);
17541754
// We need to call the function to resolve a promise in the code
1755-
if (func) {
1755+
if (func != null) {
17561756
await func(token as unknown as Token<Claim>);
17571757
}
17581758
return [claimId, signedClaim];

0 commit comments

Comments
 (0)