Skip to content

Commit

Permalink
update !designs.length checks to be designs.length === 0
Browse files Browse the repository at this point in the history
  • Loading branch information
Roystbeef committed Jan 25, 2024
1 parent 04ea253 commit ec33e57
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/usecases/handle-figma-file-update-event-use-case.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ export const handleFigmaFileUpdateEventUseCase = {
),
]);

if (!associatedFigmaDesigns.length) return;
if (associatedFigmaDesigns.length === 0) {
return;
}

let designs: AtlassianDesign[];

Expand All @@ -58,7 +60,9 @@ export const handleFigmaFileUpdateEventUseCase = {
throw e;
}

if (!designs.length) return;
if (designs.length === 0) {
return;
}

// Update the timestamp for all the designs attached to a node
await Promise.all([
Expand Down

0 comments on commit ec33e57

Please sign in to comment.