npm run format

Signed-off-by: Phred <fearphage@gmail.com>
This commit is contained in:
Phred 2021-08-06 09:33:45 -05:00
parent af4fd4efb5
commit 9720455de9
No known key found for this signature in database
GPG key ID: 8103F27168DAA2A0
2 changed files with 3 additions and 8 deletions

View file

@ -644,7 +644,7 @@ describe('flagMap', () => {
expect(results).toEqual([
['--catpants', 'a'],
['--catpants', 'b'],
['--catpants', 'c'],
['--catpants', 'c']
]);
});
});

View file

@ -88,12 +88,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>> {
@ -104,7 +99,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) {