Skip to content

Commit

Permalink
Remove redundant if
Browse files Browse the repository at this point in the history
Signed-off-by: Jim Brännlund <jimbrannlund@fastmail.com>
  • Loading branch information
BeyondEvil committed Jan 5, 2022
1 parent 6cd5c4d commit 16858fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
5 changes: 1 addition & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions src/context.ts
Expand Up @@ -98,11 +98,7 @@ export async function getArgs(inputs: Inputs, defaultContext: string, buildxVers
let args: Array<string> = ['buildx'];
args.push.apply(args, await getBuildArgs(inputs, defaultContext, buildxVersion));
args.push.apply(args, await getCommonArgs(inputs, buildxVersion));
if (inputs.context.startsWith('{{defaultContext}}')) {
inputs.context = handlebars.compile(inputs.context)({defaultContext});
}
args.push(inputs.context);

args.push(handlebars.compile(inputs.context)({defaultContext}));
return args;
}

Expand Down

0 comments on commit 16858fe

Please sign in to comment.