Skip to content

Commit 7063876

Browse files
committed
Ignore empty volumes
Signed-off-by: David Gageot <[email protected]>
1 parent d3aea72 commit 7063876

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cmd/docker-mcp/internal/eval/volume.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ import "fmt"
44

55
func volume(value any) string {
66
source := fmt.Sprintf("%v", value)
7+
if source == "" {
8+
return ""
9+
}
10+
711
target := source
812
if isWindowsPath(target) {
913
target = toLinuxPath(target)

0 commit comments

Comments
 (0)