Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
keeramis committed Feb 6, 2025
1 parent 96e0fc4 commit d44926c
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/cmd/esim.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@ const path = require('path');
const _ = require('lodash');
const chalk = require('chalk');

// TODO: Get these from exports
const PROVISIONING_PROGRESS = 1;
const PROVISIONING_SUCCESS = 2;
const PROVISIONING_FAILURE = 3;
const CTRL_REQUEST_APP_CUSTOM = 10;
const GET_AT_COMMAND_STATUS = 4;

const LPA_PROFILE_ENABLE_ERROR = 'profile not in disabled state';

const TEST_ICCID = ['89000123456789012341', '89000123456789012358'];
const TWILIO_ICCID_PREFIX = '8988307';
Expand Down Expand Up @@ -91,11 +90,7 @@ module.exports = class ESimCommands extends CLICommandBase {

async enableCommand(iccid) {
await this._checkForTachyonDevice();
if (this.isTachyon) {
await this.doEnableTachyon(iccid);
} else {

}
await this.doEnableTachyon(iccid);
}

async deleteCommand(args, iccid) {
Expand Down Expand Up @@ -837,7 +832,7 @@ module.exports = class ESimCommands extends CLICommandBase {
res.details.command = enableProfileCmd;
return res;
} catch (error) {
if (error.message.includes('profile not in disabled state')) {
if (error.message.includes(LPA_PROFILE_ENABLE_ERROR)) {
res.details.rawLogs.push(`Profile already enabled: ${iccid}`);
return res;
}
Expand Down

0 comments on commit d44926c

Please sign in to comment.