refactor: Add lint rules for no unused vars and unused import (#9940)
This commit is contained in:
@@ -225,7 +225,7 @@ function wrapToHTTPRequest(hook, key) {
|
||||
if (typeof body === 'string') {
|
||||
try {
|
||||
body = JSON.parse(body);
|
||||
} catch (e) {
|
||||
} catch {
|
||||
err = {
|
||||
error: 'Malformed response',
|
||||
code: -1,
|
||||
|
||||
@@ -217,7 +217,7 @@ export function getDatabaseAdapter(databaseURI, collectionPrefix, databaseOption
|
||||
try {
|
||||
const parsedURI = new URL(databaseURI);
|
||||
protocol = parsedURI.protocol ? parsedURI.protocol.toLowerCase() : null;
|
||||
} catch (e) {
|
||||
} catch {
|
||||
/* */
|
||||
}
|
||||
switch (protocol) {
|
||||
|
||||
Reference in New Issue
Block a user