Skip to content

Commit 91d29b1

Browse files
ulivzyyx990803
authored andcommitted
chore: avoid using templates literals for string constants (#1333)
1 parent 0fb5172 commit 91d29b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/codegen/hotReload.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ if (module.hot) {
2222
if (!module.hot.data) {
2323
api.createRecord('${id}', component.options)
2424
} else {
25-
api.${functional ? `rerender` : `reload`}('${id}', component.options)
25+
api.${functional ? 'rerender' : 'reload'}('${id}', component.options)
2626
}
27-
${templateRequest ? genTemplateHotReloadCode(id, templateRequest) : ``}
27+
${templateRequest ? genTemplateHotReloadCode(id, templateRequest) : ''}
2828
}
2929
}
3030
`.trim()

0 commit comments

Comments
 (0)