Skip to content

Commit a649a58

Browse files
committed
fix lint issues
1 parent 13e8444 commit a649a58

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

src/lib/download-manager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class DownloadManager {
4848
}
4949

5050
return response.json();
51-
} catch (err) {
51+
} catch (_err) {
5252
throw new Error('Could not download the version file. Please check your internet connection.');
5353
}
5454
}

src/lib/tachyon/steps.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
const os = require('os');
23
const crypto = require('crypto');
34
const fs = require('fs-extra');
@@ -250,7 +251,7 @@ async function getProduct({ orgSlug, ui, api }) {
250251
const productsResp = await ui.showBusySpinnerUntilResolved(
251252
`Fetching products for ${orgSlug || 'sandbox'}`,
252253
api.getProducts(orgSlug));
253-
let newProductName = 'Create a new product';
254+
const newProductName = 'Create a new product';
254255
let products = productsResp?.products || [];
255256

256257

@@ -264,7 +265,7 @@ async function getProduct({ orgSlug, ui, api }) {
264265
'Select a product',
265266
[...products.map(product => product.name), newProductName]);
266267

267-
const selectedProduct = selectedProductName !== newProductName ?
268+
const selectedProduct = selectedProductName !== newProductName ?
268269
(products.find(p => p.name === selectedProductName)) :
269270
null;
270271
return selectedProduct?.id || null;
@@ -285,7 +286,7 @@ async function assignDeviceToProduct({ deviceId, productId, ui, api, productSlug
285286
ui.write(`Device ${deviceId} Assigned to the product ${productSlug}`);
286287
}
287288

288-
async function getCountryStep({ ui, country, silent }, stepIndex ) {
289+
async function getCountryStep({ ui, country, silent }, stepIndex) {
289290
if (silent) {
290291
ui.write(`${os.EOL}`);
291292
ui.write(`Skipping step: ${stepIndex}: Using country ${country}`);
@@ -359,7 +360,7 @@ async function createConfigBlobStep(context, stepIndex) {
359360
text: 'Creating the configuration file to write to the Tachyon device...',
360361
step: stepIndex,
361362
});
362-
const { configBlobPath } = await createBlobFile(context);
363+
const { configBlobPath } = await createBlobFile(context);
363364
const { xmlFile: xmlPath } = await prepareFlashFiles({
364365
logFile: context.log.file,
365366
ui: context.ui,
@@ -390,7 +391,7 @@ async function createBlobFile(context) {
390391
config['initialTime'] = new Date().toISOString();
391392
// Write config JSON to a temporary file (generate a filename with the temp npm module)
392393
// prefixed by the JSON string length as a 32 bit integer
393-
let jsonString = JSON.stringify(config, null, 2);
394+
const jsonString = JSON.stringify(config, null, 2);
394395
const buffer = Buffer.alloc(4 + Buffer.byteLength(jsonString));
395396
buffer.writeUInt32BE(Buffer.byteLength(jsonString), 0);
396397
buffer.write(jsonString, 4);

src/lib/tachyon/workflow.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
'use strict';
12
const os = require('os');
23
const steps = require('./steps');
34
/**
@@ -138,7 +139,7 @@ const ubuntu24 = Object.freeze({
138139
` - Power off the device by holding the power button for 3 seconds and releasing.${os.EOL}` +
139140
` - Power on the device by pressing the power button.${os.EOL}${os.EOL}` +
140141
`When the device boots it will:${os.EOL}` +
141-
` - Connect to the Particle Cloud.${os.EOL}`+
142+
` - Connect to the Particle Cloud.${os.EOL}` +
142143
` - Run all system services, including the desktop if an HDMI monitor is connected.${os.EOL}${os.EOL}` +
143144
`For more information about what's currently supported on Ubuntu 24.04, visit https://developer.particle.io/tachyon/software/ubuntu_24_04/overview${os.EOL}${os.EOL}`
144145
},

0 commit comments

Comments
 (0)