Update try/catch syntax (#13732)
Update try/catch syntax to prepare for eslint migration
This commit is contained in:
+1
-1
@@ -60,7 +60,7 @@ const stringify = (value: any): string => {
|
||||
const parseJSON = (value: string): object => {
|
||||
try {
|
||||
return JSON.parse(value);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
throw new ValidationError(`Value is not valid JSON: ${value}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user