Skip to content

Commit

Permalink
Linted lines
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonioSanch3z committed Jul 25, 2024
1 parent 962df2e commit 925cbc8
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
6 changes: 4 additions & 2 deletions src/deploymentMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Widget } from '@lumino/widgets';
import { Dialog } from '@jupyterlab/apputils';
import { executeKernelCommand, getIMClientPath } from './utils';


interface IDeployInfo {
IMuser: string;
IMpass: string;
Expand Down Expand Up @@ -490,7 +489,10 @@ const getEGIToken = async () => {
});
};

async function deployIMCommand(obj: IDeployInfo, mergedTemplate: string): Promise<string> {
async function deployIMCommand(
obj: IDeployInfo,
mergedTemplate: string
): Promise<string> {
const pipeAuth = `${obj.infName}-auth-pipe`;
const imClientPath = await getIMClientPath();
const imageRADL = obj.infName;
Expand Down
9 changes: 6 additions & 3 deletions src/listDeployments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Dialog } from '@jupyterlab/apputils';
import { Widget } from '@lumino/widgets';
import { getIMClientPath } from './utils';


interface IInfrastructure {
IMuser: string;
IMpass: string;
Expand Down Expand Up @@ -187,7 +186,9 @@ async function populateTable(table: HTMLTableElement): Promise<void> {
await kernel.shutdown();
}

async function infrastructureState(infrastructure: IInfrastructure): Promise<string> {
async function infrastructureState(
infrastructure: IInfrastructure
): Promise<string> {
const {
IMuser,
IMpass,
Expand Down Expand Up @@ -251,7 +252,9 @@ async function infrastructureState(infrastructure: IInfrastructure): Promise<str
return cmd;
}

async function infrastructureIP(infrastructure: IInfrastructure): Promise<string> {
async function infrastructureIP(
infrastructure: IInfrastructure
): Promise<string> {
const {
IMuser,
IMpass,
Expand Down
6 changes: 5 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export async function getIMClientPath(): Promise<string> {
if (output.trim()) {
resolve(output.trim());
} else {
reject(new Error('Failed to find im_client.py path. Maybe IM-client is not installed.'));
reject(
new Error(
'Failed to find im_client.py path. Maybe IM-client is not installed.'
)
);
}
}).catch(reject);
});
Expand Down

0 comments on commit 925cbc8

Please sign in to comment.