Skip to content

Commit a4d880c

Browse files
author
Gregor Gololicic
committed
quick fix default network flag is not empty string anymore but has default value
1 parent d4fb2b0 commit a4d880c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/command/command.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ func resolveHost(proj *project.Project, hostFlag string, networkFlag string) (st
218218
return hostFlag, nil
219219
}
220220
// network flag with project initialized is next
221-
if networkFlag != "" && proj != nil {
221+
if proj != nil {
222222
check := proj.NetworkByName(networkFlag)
223223
if check == nil {
224224
return "", fmt.Errorf("network with name %s does not exist in configuration", networkFlag)

0 commit comments

Comments
 (0)