Skip to content

Commit 3fcb83b

Browse files
refactor: simplify code
1 parent ee11dba commit 3fcb83b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/utils/subgraphQuery.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ export const getValidContact = async (
8686
grantedAccess: contact.grantedAccess,
8787
};
8888
}
89-
return null;
9089
})
91-
.filter((contact) => contact !== null && contact !== undefined);
90+
.filter((contact) => !!contact);
9291
} catch (error) {
9392
throw new WorkflowError({
9493
message: 'Failed to fetch subgraph',

0 commit comments

Comments
 (0)