We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da98b4b commit b33cacbCopy full SHA for b33cacb
lib/analyzer/image-inspector.ts
@@ -48,7 +48,6 @@ async function pullWithDockerBinary(
48
password: string | undefined,
49
platform: string | undefined,
50
): Promise<boolean> {
51
- let pullAndSaveSuccessful = false;
52
try {
53
if (username || password) {
54
debug(
@@ -57,13 +56,13 @@ async function pullWithDockerBinary(
57
56
}
58
await docker.pullCli(targetImage, { platform });
59
await docker.save(targetImage, saveLocation);
60
- return (pullAndSaveSuccessful = true);
+ return true;
61
} catch (err) {
62
debug(`couldn't pull ${targetImage} using docker binary: ${err.message}`);
63
64
handleDockerPullError(err.stderr, platform);
65
66
- return pullAndSaveSuccessful;
+ return false;
67
68
69
0 commit comments