Skip to content

Commit 436da11

Browse files
committed
fix: more cases
1 parent 0b8679d commit 436da11

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/vip-import-media.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function isSupportedUrl( urlToTest ) {
7676
let url;
7777
try {
7878
url = new URL( urlToTest );
79-
} catch ( err ) {
79+
} catch {
8080
return false;
8181
}
8282
return url.protocol === 'http:' || url.protocol === 'https:';

src/bin/vip-import-sql.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export async function gates( app, env, fileNameOrURL, isUrl = false, md5 = null
160160

161161
try {
162162
await checkFileAccess( fileName );
163-
} catch ( err ) {
163+
} catch {
164164
await track( 'import_sql_command_error', { error_type: 'sqlfile-unreadable' } );
165165
exit.withError( `File '${ fileName }' does not exist or is not readable.` );
166166
}

0 commit comments

Comments
 (0)