Update try/catch syntax (#13732)
Update try/catch syntax to prepare for eslint migration
This commit is contained in:
+1
-1
@@ -15,7 +15,7 @@ export const formatDateISOStringToCustomUnicodeFormat = ({
|
||||
return formatInTimeZone(new Date(date), timeZone, dateFormat, {
|
||||
locale: localeCatalog,
|
||||
});
|
||||
} catch (e) {
|
||||
} catch {
|
||||
return 'Invalid format string';
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user