Skip to content

Commit

Permalink
npm run format
Browse files Browse the repository at this point in the history
Signed-off-by: Phred <[email protected]>
  • Loading branch information
fearphage committed Aug 6, 2021
1 parent f12c810 commit b0c3322
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/context.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ describe('flagMap', () => {
expect(results).toEqual([
['--catpants', 'a'],
['--catpants', 'b'],
['--catpants', 'c'],
['--catpants', 'c']
]);
});
});
Expand Down
9 changes: 2 additions & 7 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
}

export async function getArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
return [
'buildx',
...await getBuildArgs(inputs, defaultContext, buildxVersion),
...await getCommonArgs(inputs),
inputs.context,
];
return ['buildx', ...(await getBuildArgs(inputs, defaultContext, buildxVersion)), ...(await getCommonArgs(inputs)), inputs.context];
}

async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
Expand All @@ -105,7 +100,7 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
...flagMap(inputs.labels, '--label'),
...flagMap(inputs.outputs, '--output'),
...flagMap(inputs.tags, '--tag'),
...flagMap(inputs.ssh, '--ssh'),
...flagMap(inputs.ssh, '--ssh')
);

if (inputs.target) {
Expand Down

0 comments on commit b0c3322

Please sign in to comment.