Skip to content

Commit a2ce1d4

Browse files
committed
No unsafe return
1 parent 4baefa8 commit a2ce1d4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

shipixen/layouts/ProductLayout.tsx

+11-11
Original file line numberDiff line numberDiff line change
@@ -82,18 +82,18 @@ const getRelevantDates = ({ validFromDate, expiresOnDate }) => {
8282
}
8383
} catch (error) {
8484
console.error(error);
85-
} finally {
86-
return {
87-
isExpired,
88-
isValid,
89-
validFromFormattedDate,
90-
expiresOnFormattedDate,
91-
isValidInThreeDays,
92-
isValidInOneDay,
93-
expiresInADay,
94-
expiresInThreeDays,
95-
};
9685
}
86+
87+
return {
88+
isExpired,
89+
isValid,
90+
validFromFormattedDate,
91+
expiresOnFormattedDate,
92+
isValidInThreeDays,
93+
isValidInOneDay,
94+
expiresInADay,
95+
expiresInThreeDays,
96+
};
9797
};
9898

9999
export default function PostLayout({

0 commit comments

Comments
 (0)