refactor: Use ===
This commit is contained in:
parent
fef5ec874b
commit
d4a630902d
39 changed files with 69 additions and 69 deletions
|
@ -4,7 +4,7 @@ import { MfmForest, MfmTree } from './prelude';
|
|||
import { createTree, createLeaf } from '../prelude/tree';
|
||||
|
||||
function isEmptyTextTree(t: MfmTree): boolean {
|
||||
return t.node.type == 'text' && t.node.props.text === '';
|
||||
return t.node.type === 'text' && t.node.props.text === '';
|
||||
}
|
||||
|
||||
function concatTextTrees(ts: MfmForest): MfmTree {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue