From e0b09adbbac2a3f32f73efbe29be76e772e9a617 Mon Sep 17 00:00:00 2001 From: Saad Jutt Date: Wed, 8 Sep 2021 06:30:53 +0500 Subject: [PATCH] chore: code refactor renamed variables/functions --- src/job-execution/WebJobExecutor.ts | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/job-execution/WebJobExecutor.ts b/src/job-execution/WebJobExecutor.ts index 07e367b..31f19eb 100644 --- a/src/job-execution/WebJobExecutor.ts +++ b/src/job-execution/WebJobExecutor.ts @@ -14,13 +14,11 @@ import { RequestClient } from '../request/RequestClient' import { SASViyaApiClient } from '../SASViyaApiClient' import { isRelativePath, - getValidJson, parseSasViyaDebugResponse, appendExtraResponseAttributes } from '../utils' import { BaseJobExecutor } from './JobExecutor' import { parseWeboutResponse } from '../utils/parseWeboutResponse' -import { isLoggedInSASVIYA } from '../auth/verifyingPopUpLoginSASVIYA' export interface WaitingRequstPromise { promise: Promise | null @@ -47,11 +45,6 @@ export class WebJobExecutor extends BaseJobExecutor { extraResponseAttributes: ExtraResponseAttributes[] = [] ) { const loginCallback = loginRequiredCallback || (() => Promise.resolve()) - - if (this.serverType === ServerType.SasViya && !isLoggedInSASVIYA()) { - await loginCallback() - } - const program = isRelativePath(sasJob) ? config.appLoc ? config.appLoc.replace(/\/?$/, '/') + sasJob.replace(/^\//, '') @@ -60,10 +53,7 @@ export class WebJobExecutor extends BaseJobExecutor { let apiUrl = `${config.serverUrl}${this.jobsPath}/?${'_program=' + program}` if (config.serverType === ServerType.SasViya) { - const jobUri = - config.serverType === ServerType.SasViya - ? await this.getJobUri(sasJob) - : '' + const jobUri = await this.getJobUri(sasJob) apiUrl += jobUri.length > 0 ? '&_job=' + jobUri : ''