Skip to content

Commit

Permalink
feat(camera): let to const for looping dataIndexes
Browse files Browse the repository at this point in the history
Indexes of returnedDataIndexes is not reassinged. No need to use let here
  • Loading branch information
itschip authored Nov 4, 2021
1 parent e933da2 commit 87e4295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/client/cl_photo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const takePhoto = () =>
async (data: any) => {
try {
let parsedData = JSON.parse(data);
for (let index of config.images.returnedDataIndexes)
for (const index of config.images.returnedDataIndexes)
parsedData = parsedData[index];
const resp = await ClUtils.emitNetPromise(PhotoEvents.UPLOAD_PHOTO, parsedData);
console.log('export shit', resp);
Expand Down

0 comments on commit 87e4295

Please sign in to comment.