mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 20:26:24 +00:00
Migrate util, types, state, sticker-creator to ESLint
This commit is contained in:
@@ -3,7 +3,8 @@ import { LoggerType } from '../types/Logging';
|
||||
function parseUrl(value: unknown, logger: LoggerType): null | URL {
|
||||
if (value instanceof URL) {
|
||||
return value;
|
||||
} else if (typeof value === 'string') {
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
try {
|
||||
return new URL(value);
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user