1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 21:10:05 +00:00

chore: code refactor renamed variables/functions

This commit is contained in:
Saad Jutt
2021-09-08 05:49:24 +05:00
parent cd2b32f2f4
commit 19a57dbf6e
6 changed files with 21 additions and 16 deletions

View File

@@ -25,7 +25,7 @@ import {
Sas9JobExecutor
} from './job-execution'
import { ErrorResponse } from './types/errors'
import { LoginOptions, LoginReturn } from './types/Login'
import { LoginOptions, LoginResult } from './types/Login'
const defaultConfig: SASjsConfig = {
serverUrl: '',
@@ -538,7 +538,7 @@ export default class SASjs {
username?: string,
password?: string,
options: LoginOptions = {}
): Promise<LoginReturn> {
): Promise<LoginResult> {
if (this.sasjsConfig.loginMechanism === LoginMechanism.Default) {
if (!username || !password) {
throw new Error(