refactor(backend): remove unnecessary isNotNull sugar
This commit is contained in:
parent
1df90cef4c
commit
bf33382082
22 changed files with 36 additions and 65 deletions
|
|
@ -1,8 +0,0 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: syuilo and misskey-project
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
export function isNotNull<T extends NonNullable<unknown>>(input: T | undefined | null): input is T {
|
||||
return input != null;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue