Resolve review comments

Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
divyansh42 2021-01-28 12:18:24 +05:30
parent 557824d2d1
commit 8fc3073634
9 changed files with 67 additions and 65 deletions

View file

@ -98,8 +98,10 @@ export class BuildahCli implements Buildah {
core.debug("commit");
core.debug(container);
core.debug(newImageName);
const args: string[] = [ "commit", ...BuildahCli.getImageFormatOption(useOCI),
"--squash", container, newImageName ];
const args: string[] = [
"commit", ...BuildahCli.getImageFormatOption(useOCI),
"--squash", container, newImageName,
];
return this.execute(args);
}
@ -130,10 +132,10 @@ export class BuildahCli implements Buildah {
finalExecOptions.ignoreReturnCode = true; // the return code is processed below
finalExecOptions.listeners = {
stdline: (line) : void => {
stdline: (line): void => {
stdout += line + "\n";
},
errline: (line) :void => {
errline: (line):void => {
stderr += line + "\n";
},
};