Skip to content

Commit 34bf324

Browse files
committed
run lint on starship client
1 parent c67b58f commit 34bf324

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

clients/js/packages/client/src/client.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { Chain, Relayer, StarshipConfig } from './config';
1111
import { Ports } from './config';
1212
import { dependencies as defaultDependencies, Dependency } from './deps';
1313
import { readAndParsePackageJson } from './package';
14-
import {type} from "node:os";
1514

1615
export interface StarshipContext {
1716
name?: string;
@@ -66,7 +65,7 @@ const defaultPorts: PodPorts = {
6665
chains: {
6766
ethereum: {
6867
rpc: 8551,
69-
rest: 8545,
68+
rest: 8545
7069
},
7170
defaultPorts: {
7271
rpc: 26657,
@@ -720,10 +719,9 @@ export class StarshipClient implements StarshipClientI {
720719
externalPort: number
721720
): void {
722721
let podName: string;
723-
if (typeof(chain.id) === 'string') {
722+
if (typeof chain.id === 'string') {
724723
podName = `${formatChainID(chain.id)}-genesis-0`;
725-
}
726-
else {
724+
} else {
727725
podName = `${chain.name}-${chain.id}-0`;
728726
}
729727

@@ -753,10 +751,9 @@ export class StarshipClient implements StarshipClientI {
753751
externalPort: number
754752
): void {
755753
let podName: string;
756-
if (typeof(chain.id) === 'string') {
754+
if (typeof chain.id === 'string') {
757755
podName = `${formatChainID(chain.id)}-cometmock-0`;
758-
}
759-
else {
756+
} else {
760757
podName = `${chain.name}-${chain.id}-0`;
761758
}
762759

0 commit comments

Comments
 (0)