Skip to content

Commit 6a444da

Browse files
Zhan MilenkovZhan Milenkov
Zhan Milenkov
authored and
Zhan Milenkov
committed
formatting and linting
1 parent 2749733 commit 6a444da

8 files changed

+12
-14
lines changed

src/commands/account.mjs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ export class AccountCommand extends BaseCommand {
3434
super(opts)
3535

3636
if (!opts || !opts.accountManager) throw new IllegalArgumentError('An instance of core/AccountManager is required', opts.accountManager)
37+
3738
this.accountManager = opts.accountManager
3839
this.accountInfo = null
3940
this.systemAccounts = systemAccounts
@@ -82,12 +83,8 @@ export class AccountCommand extends BaseCommand {
8283
ctx.privateKey = PrivateKey.generateED25519()
8384
}
8485

85-
return this.accountManager.createNewAccount(
86-
ctx.config.namespace,
87-
ctx.privateKey,
88-
ctx.config.amount,
89-
ctx.config.ecdsaPrivateKey ? ctx.config.setAlias : false
90-
)
86+
return this.accountManager.createNewAccount(ctx.config.namespace,
87+
ctx.privateKey, ctx.config.amount, ctx.config.ecdsaPrivateKey ? ctx.config.setAlias : false)
9188
}
9289

9390
/**

src/commands/cluster.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
'use strict';
17+
'use strict'
1818
import { ListrEnquirerPromptAdapter } from '@listr2/prompt-adapter-enquirer'
1919
import { Listr } from 'listr2'
2020
import { FullstackTestingError, IllegalArgumentError } from '../core/errors.mjs'

src/commands/init.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export class InitCommand extends BaseCommand {
169169
flags.releaseTag
170170
)
171171
},
172-
handler: () => {
172+
handler: (argv) => {
173173
initCmd.init(argv).then(r => {
174174
if (!r) process.exit(1)
175175
}).catch(err => {

src/commands/node.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export class NodeCommand extends BaseCommand {
190190
* @returns {Promise<void>}
191191
*/
192192
async close () {
193-
await this.accountManager.close()
193+
this.accountManager.close() // TODO Review
194194
if (this._portForwards) {
195195
for (const srv of this._portForwards) {
196196
await this.k8.stopPortForward(srv)

src/commands/relay.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* limitations under the License.
1515
*
1616
*/
17-
'use strict';
17+
'use strict'
1818
import { Listr } from 'listr2'
1919
import { FullstackTestingError, MissingArgumentError } from '../core/errors.mjs'
2020
import * as helpers from '../core/helpers.mjs'

src/core/account_manager.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export class AccountManager {
219219
* @param {Map<string, NetworkNodeServices>} networkNodeServicesMap - a map of the service objects that proxy the nodes
220220
* @param {string} operatorId - the account id of the operator of the transactions
221221
* @param {string} operatorKey - the private key of the operator of the transactions
222-
* @returns {Promise<import('@hashgraph/sdk').Client>} a node client that can be used to call transactions
222+
* @returns {Promise<NodeClient>} a node client that can be used to call transactions
223223
*/
224224
async _getNodeClient (namespace, networkNodeServicesMap, operatorId, operatorKey) {
225225
const nodes = {}

src/core/package_downloader.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ export class PackageDownloader {
5151
// attempt to parse to check URL format
5252
const out = new URL(url)
5353
return out.href !== undefined
54-
} catch {}
54+
} catch (e) {
55+
}
5556

5657
return false
5758
}

src/core/platform_installer.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,12 +240,12 @@ export class PlatformInstaller {
240240
const recursiveFlag = recursive ? '-R' : ''
241241
try {
242242
await this.k8.execContainer(podName, container, `chown ${recursiveFlag} hedera:hedera ${destPath}`)
243-
} catch {
243+
} catch (e) {
244244
// ignore error, can't change settings on files that come from configMaps or secrets
245245
}
246246
try {
247247
await this.k8.execContainer(podName, container, `chmod ${recursiveFlag} ${mode} ${destPath}`)
248-
} catch {
248+
} catch (e) {
249249
// ignore error, can't change settings on files that come from configMaps or secrets
250250
}
251251

0 commit comments

Comments
 (0)