From 1331f0b953d7db15a7a12edc00ec20d8bf789d53 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 18 Jun 2019 15:27:13 +0900 Subject: Use WHATWG API > New application code should use the WHATWG API. --- src/misc/convert-host.ts | 1 - 1 file changed, 1 deletion(-) (limited to 'src/misc') diff --git a/src/misc/convert-host.ts b/src/misc/convert-host.ts index a5fb15c66f..ad52e12588 100644 --- a/src/misc/convert-host.ts +++ b/src/misc/convert-host.ts @@ -1,6 +1,5 @@ import config from '../config'; import { toASCII } from 'punycode'; -import { URL } from 'url'; export function getFullApAccount(username: string, host: string | null) { return host ? `${username}@${toPuny(host)}` : `${username}@${toPuny(config.host)}`; -- cgit v1.2.3-freya