Skip to content

Commit

Permalink
fix: remove unnecessary const, fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Lundkvist <[email protected]>
  • Loading branch information
Lunkers committed Jan 20, 2025
1 parent c6d267f commit 54cc47b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/encorePackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,10 @@ export class EncorePackager {

// This is problematic, because it doesn't respect the external ID.
resolveTemplate(template: string, job: EncoreJob) {
const externalId = job.externalId;
const inputUri = job.inputs[0].uri;
const inputBasename = basename(inputUri, extname(inputUri));
return template
.replaceAll('$EXTERNALID$/', externalId? externalId + '/' : '')
.replaceAll('$EXTERNALID$/', job.externalId ? job.externalId + '/' : '')
.replaceAll('$JOBID$', job.id)
.replaceAll('$INPUTNAME$', inputBasename);
}
Expand Down

0 comments on commit 54cc47b

Please sign in to comment.