mirror of
https://activitypub.software/TransFem-org/sfm-js
synced 2024-11-25 07:25:13 +00:00
lint
This commit is contained in:
parent
5639ecd440
commit
430faf5959
1 changed files with 3 additions and 3 deletions
|
@ -15,7 +15,7 @@ export function mergeText(nodes: (MfmNode | string)[]): MfmNode[] {
|
|||
}
|
||||
|
||||
for (const node of nodes) {
|
||||
if (typeof node == 'string') {
|
||||
if (typeof node === 'string') {
|
||||
// Store the char.
|
||||
storedChars.push(node);
|
||||
}
|
||||
|
@ -131,13 +131,13 @@ export function stringifyTree(nodes: MfmNode[]): string {
|
|||
|
||||
let pushLf: boolean = true;
|
||||
if (isMfmBlock(node)) {
|
||||
if (state == stringifyState.none) {
|
||||
if (state === stringifyState.none) {
|
||||
pushLf = false;
|
||||
}
|
||||
state = stringifyState.block;
|
||||
}
|
||||
else {
|
||||
if (state == stringifyState.none || state == stringifyState.inline) {
|
||||
if (state === stringifyState.none || state === stringifyState.inline) {
|
||||
pushLf = false;
|
||||
}
|
||||
state = stringifyState.inline;
|
||||
|
|
Loading…
Reference in a new issue