Skip to content

Commit b0c3322

Browse files
committed
npm run format
Signed-off-by: Phred <[email protected]>
1 parent f12c810 commit b0c3322

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

__tests__/context.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ describe('flagMap', () => {
621621
expect(results).toEqual([
622622
['--catpants', 'a'],
623623
['--catpants', 'b'],
624-
['--catpants', 'c'],
624+
['--catpants', 'c']
625625
]);
626626
});
627627
});

src/context.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,7 @@ export async function getInputs(defaultContext: string): Promise<Inputs> {
8989
}
9090

9191
export async function getArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
92-
return [
93-
'buildx',
94-
...await getBuildArgs(inputs, defaultContext, buildxVersion),
95-
...await getCommonArgs(inputs),
96-
inputs.context,
97-
];
92+
return ['buildx', ...(await getBuildArgs(inputs, defaultContext, buildxVersion)), ...(await getCommonArgs(inputs)), inputs.context];
9893
}
9994

10095
async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersion: string): Promise<Array<string>> {
@@ -105,7 +100,7 @@ async function getBuildArgs(inputs: Inputs, defaultContext: string, buildxVersio
105100
...flagMap(inputs.labels, '--label'),
106101
...flagMap(inputs.outputs, '--output'),
107102
...flagMap(inputs.tags, '--tag'),
108-
...flagMap(inputs.ssh, '--ssh'),
103+
...flagMap(inputs.ssh, '--ssh')
109104
);
110105

111106
if (inputs.target) {

0 commit comments

Comments
 (0)