refactor: Use ===
This commit is contained in:
parent
fef5ec874b
commit
d4a630902d
39 changed files with 69 additions and 69 deletions
|
|
@ -3,7 +3,7 @@ import { MfmForest } from './prelude';
|
|||
import { normalize } from './normalize';
|
||||
|
||||
export function parse(source: string | null): MfmForest | null {
|
||||
if (source == null || source == '') {
|
||||
if (source == null || source === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
@ -11,7 +11,7 @@ export function parse(source: string | null): MfmForest | null {
|
|||
}
|
||||
|
||||
export function parsePlain(source: string | null): MfmForest | null {
|
||||
if (source == null || source == '') {
|
||||
if (source == null || source === '') {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue