Change let to const in "Extract EXIF"

feature-extract-files
toby 2017-05-08 12:49:13 -04:00
parent ee25df0c28
commit 60fddf837d
1 changed files with 4 additions and 4 deletions

View File

@ -14,9 +14,9 @@ import Utils from "../Utils.js";
const Image = {
runEXIF(input, args) {
try {
let bytes = Uint8Array.from(input);
let parser = ExifParser.create(bytes.buffer);
let result = parser.parse();
const bytes = Uint8Array.from(input);
const parser = ExifParser.create(bytes.buffer);
const result = parser.parse();
let lines = [];
for (let tagName in result.tags) {
@ -24,7 +24,7 @@ const Image = {
lines.push(`${tagName}: ${value}`);
}
let numTags = lines.length;
const numTags = lines.length;
lines.unshift(`Found ${numTags} tags.\n`);
return lines.join("\n");
} catch (err) {