Lint fixes

pull/358/head
cagataycivici 2020-07-01 15:33:00 +03:00
parent 38ed215624
commit e37b4ec1bf
7 changed files with 20 additions and 20 deletions

View File

@ -338,7 +338,7 @@ export default {
}, },
findIndexById(id) { findIndexById(id) {
let index = -1; let index = -1;
for (let i = 0; i < this.products.length; i++) { for (let i = 0; i &lt; this.products.length; i++) {
if (this.products[i].id === id) { if (this.products[i].id === id) {
index = i; index = i;
break; break;
@ -350,7 +350,7 @@ export default {
createId() { createId() {
let id = ''; let id = '';
var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
for ( var i = 0; i < 5; i++ ) { for ( var i = 0; i &lt; 5; i++ ) {
id += chars.charAt(Math.floor(Math.random() * chars.length)); id += chars.charAt(Math.floor(Math.random() * chars.length));
} }
return id; return id;