mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 09:23:48 +01:00
Eliminate if-statement (#3562)
This commit is contained in:
parent
e9d519ea9a
commit
2b7e219efe
@ -67,14 +67,9 @@ export default Vue.component('misskey-flavored-markdown', {
|
|||||||
render(createElement) {
|
render(createElement) {
|
||||||
if (this.text == null || this.text == '') return;
|
if (this.text == null || this.text == '') return;
|
||||||
|
|
||||||
let ast: Node[];
|
const ast = this.ast == null ?
|
||||||
|
parse(this.text, this.plainText) : // Parse text to ast
|
||||||
if (this.ast == null) {
|
this.ast as Node[];
|
||||||
// Parse text to ast
|
|
||||||
ast = parse(this.text, this.plainText);
|
|
||||||
} else {
|
|
||||||
ast = this.ast as Node[];
|
|
||||||
}
|
|
||||||
|
|
||||||
let bigCount = 0;
|
let bigCount = 0;
|
||||||
let motionCount = 0;
|
let motionCount = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user