Fill catch block with placeholder comment

Signed-off-by: Josh-Cena <sidachen2003@gmail.com>
This commit is contained in:
Josh-Cena 2021-06-18 22:36:57 +08:00
parent 8a4c6ac49e
commit 6cc7655142
No known key found for this signature in database
GPG key ID: C37145B818BDB68F

View file

@ -116,7 +116,9 @@ const SiteUrlSchema = URISchema.required().custom(function (value, helpers) {
warningMessage: `the url is not supposed to contain a sub-path like '${pathname}', please use the baseUrl field for sub-paths`,
});
}
} catch (e) {}
} catch (e) {
/* Do nothing with invalid URL */
}
return value;
}, 'siteUrlCustomValidation');