Skip to content

Commit bea9ead

Browse files
author
André Luiz Abdalla Silveira
committed
style: adress the linter concern
The linter politely pointed out that `file?.['name']` is more concise than `file && file['name']` Closes #1419
1 parent 2b5b574 commit bea9ead

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dashboard/src/hooks/useLogData.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export const processLogData = (
5656
: undefined;
5757

5858
const logExcerptFileLink = data?.output_files?.find(
59-
file => file && file['name'] === 'log_excerpt',
59+
file => file?.['name'] === 'log_excerpt',
6060
)?.['url'];
6161

6262
return {

0 commit comments

Comments
 (0)