Skip to content

Commit 1f9fc31

Browse files
feat: refactor
1 parent 2019cfd commit 1f9fc31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/generators/QuasarGenerator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ export const store = new Vuex.Store({
233233
var stack =
234234
handlebars.__switch_stack__[handlebars.__switch_stack__.length - 1];
235235

236-
if (stack.switch_match || caseValues.indexOf(stack.switch_value) === -1) {
236+
if (stack.switch_match || caseValues.includes(stack.switch_value)) {
237237
return "";
238238
} else {
239239
stack.switch_match = true;
@@ -302,7 +302,7 @@ export const store = new Vuex.Store({
302302
console.log(
303303
JSON.stringify(obj, function(key, value) {
304304
if (typeof value === "object" && value !== null) {
305-
if (cache.indexOf(value) !== -1) {
305+
if (cache.includes(value)) {
306306
// Duplicate reference found, discard key
307307
return;
308308
}

0 commit comments

Comments
 (0)