Skip to content

Commit

Permalink
fix(js-sdk): workaround Unexpected any value in conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonianb committed Mar 25, 2024
1 parent 07c52c3 commit 80da397
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/sdk/js/src/agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,9 +315,8 @@ export const getArtifactPath = (
workspace: string,
artifact: Artifact
): string => {
const rootDir = path.isAbsolute(workspace)
? workspace
: path.join(process.cwd(), workspace)
const isAbsolute: boolean = path.isAbsolute(workspace)
const rootDir = isAbsolute ? workspace : path.join(process.cwd(), workspace)

return path.join(
rootDir,
Expand Down

0 comments on commit 80da397

Please sign in to comment.