Skip to content

Commit e906448

Browse files
authored
fix: correctly fallback to podman if docker hostinfo returns nothing (#247)
1 parent 854a70a commit e906448

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oci_image/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ function podmanGetVariant(opts = {}) {
302302
* @returns {string} - The information
303303
*/
304304
function dockerPodmanInfo(dockerSupplier, podmanSupplier, opts = {}) {
305-
return dockerSupplier(opts) ?? podmanSupplier(opts);
305+
return dockerSupplier(opts) || podmanSupplier(opts);
306306
}
307307

308308
/**

0 commit comments

Comments
 (0)