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

chore(*): clean up, address review comments

This commit is contained in:
Krishna Acondy
2021-02-02 08:42:01 +00:00
parent 36cfaee5db
commit 60a1f84604
5 changed files with 17 additions and 33 deletions

View File

@@ -106,8 +106,9 @@ export class WebJobExecutor extends BaseJobExecutor {
let folderPath
let jobName: string
if (isRelativePath(sasJob)) {
folderPath = sasJob.split('/')[0]
jobName = sasJob.split('/')[1]
const folderPathParts = sasJob.split('/')
folderPath = folderPathParts.length > 1 ? folderPathParts[0] : ''
jobName = folderPathParts.length > 1 ? folderPathParts[1] : ''
} else {
const folderPathParts = sasJob.split('/')
jobName = folderPathParts.pop() || ''