Skip to content

Commit 95cb084

Browse files
committed
Silly boolean -> int size optimization
1 parent cc55c0a commit 95cb084

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const build = (statics) => {
108108
if (charCode === TAG_START) {
109109
// commit buffer
110110
commit();
111-
inTag = true;
111+
inTag = 1;
112112
spreadClose = propsClose = props = '';
113113
slash = propHasValue = false;
114114
mode = MODE_TAGNAME;
@@ -142,7 +142,7 @@ const build = (statics) => {
142142
if (slash) {
143143
out += ')';
144144
}
145-
inTag = false;
145+
inTag = 0;
146146
props = '';
147147
mode = MODE_TEXT;
148148
continue;

0 commit comments

Comments
 (0)