Skip to content

Commit 89f60bc

Browse files
author
Daniel Borkan
committed
Using const
1 parent 93f4771 commit 89f60bc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/samples/zork-firefoxapp/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ const OPTIONS_FILE_PATH = '/zork-options';
1111
function checkIfMetricsEnabled() {
1212
return OS.File.read(OPTIONS_FILE_PATH).then((array) => {
1313
try {
14-
let decoder = new TextDecoder();
15-
let text = decoder.decode(array);
16-
let options = JSON.parse(text);
14+
const decoder = new TextDecoder();
15+
const text = decoder.decode(array);
16+
const options = JSON.parse(text);
1717
return options['isMetricsEnabled'] === true;
1818
} catch (e) {
1919
console.error('Could not parse options file');

0 commit comments

Comments
 (0)