Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
parkedwards committed Mar 4, 2024
1 parent 653c0e0 commit 6f5efaa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/docker.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ describe("Docker images", (): void => {
assertSaveCacheHit(key);
} else if (readOnly) {
assertSaveReadOnly(key);
} else if (newImages.length === 0 || newImages.every((img) => img == "<none>:<none>")) {
} else if (
newImages.length === 0 ||
newImages.every((img) => img == "<none>:<none>")
) {
assertNoNewImagesToSave();
} else {
assertSaveCacheMiss(key, newImages);
Expand Down
3 changes: 2 additions & 1 deletion src/docker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ const saveDockerImages = async (): Promise<void> => {
const images = await execBashCommand(LIST_COMMAND);
const imagesList = images.split("\n");
const newImages = imagesList.filter(
(image: string): boolean => !preexistingImages.includes(image) && image !== "<none>:<none>",
(image: string): boolean =>
!preexistingImages.includes(image) && image !== "<none>:<none>",
);
if (newImages.length === 0) {
info("No Docker images to save");
Expand Down

0 comments on commit 6f5efaa

Please sign in to comment.