Skip to content

Commit

Permalink
Formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Jun 18, 2024
1 parent 1b856eb commit 93973a2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/cmd/device-protection.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = class DeviceProtectionCommands extends CLICommandBase {
} else if (s.protected && !s.overridden) {
res = `Protected${os.EOL}${chalk.yellow('Run \'particle device-protection disable\' to put the device in service mode')}`;
} else if (s.overridden) {
res = `Protected (service mode)${os.EOL}${chalk.yellow('Run \'particle device-protection disable\' to put the device in service mode')}`;
res = `Protected (service mode)${os.EOL}${chalk.yellow('Run \'particle device-protection enable\' to protect the device')}`;
}
const deviceStr = await this._getDeviceString();
this.ui.stdout.write(`Device protection for ${deviceStr} : ${res}${os.EOL}`);
Expand Down Expand Up @@ -167,7 +167,7 @@ module.exports = class DeviceProtectionCommands extends CLICommandBase {
const s = await this._getDeviceProtection();

if (s.protected && !s.overridden) {
this.ui.stdout.write(`Device is protected${os.EOL}`);
this.ui.stdout.write(`Device ${deviceStr} is protected${os.EOL}`);
return;
}

Expand Down Expand Up @@ -232,10 +232,10 @@ module.exports = class DeviceProtectionCommands extends CLICommandBase {
let msg;
switch (action) {
case 'enable':
msg = 'Enabling protection on the device. Please wait...';
msg = 'Enabling protection on the device...';
break;
case 'disable':
msg = 'Disabling protection on the device. Please wait...';
msg = 'Disabling protection on the device...';
break;
default:
throw new Error('Invalid action');
Expand Down

0 comments on commit 93973a2

Please sign in to comment.