Skip to content

Commit

Permalink
remove session check and undefined return type
Browse files Browse the repository at this point in the history
Signed-off-by: Billie Simmons <[email protected]>
  • Loading branch information
JillieBeanSim committed Nov 21, 2024
1 parent c8e2675 commit ccae372
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/zowe-explorer-api/src/profiles/ProfilesCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,7 @@ export class ProfilesCache {
return convertResult;
}

public static getProfileSessionWithVscProxy(session: imperative.Session): imperative.Session | undefined {
if (!session) {
return;
}
public static getProfileSessionWithVscProxy(session: imperative.Session): imperative.Session {
const VsCodeProxySettings = VscSettings.getVsCodeProxySettings();
session.ISession.proxy = VsCodeProxySettings;
return session;
Expand Down

0 comments on commit ccae372

Please sign in to comment.