forked from mirrors/misskey
strictNullChecks (#4666)
* wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip
This commit is contained in:
@@ -5,8 +5,6 @@ import { genId } from '../misc/gen-id';
|
||||
import { toPuny } from '../misc/convert-host';
|
||||
|
||||
export async function registerOrFetchInstanceDoc(host: string): Promise<Instance> {
|
||||
if (host == null) return null;
|
||||
|
||||
host = toPuny(host);
|
||||
|
||||
const index = await Instances.findOne({ host });
|
||||
|
||||
Reference in New Issue
Block a user