From 8ab4b9d94480221901641564ed30b9ab49584023 Mon Sep 17 00:00:00 2001 From: Moses Narrow <36607567+0pcom@users.noreply.github.com> Date: Wed, 9 Oct 2024 10:13:31 -0500 Subject: [PATCH] small change on dmsghttp config gen logic (#1877) --- cmd/skywire-cli/commands/config/gen.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/skywire-cli/commands/config/gen.go b/cmd/skywire-cli/commands/config/gen.go index 371430cf0..4c1277e69 100644 --- a/cmd/skywire-cli/commands/config/gen.go +++ b/cmd/skywire-cli/commands/config/gen.go @@ -304,12 +304,12 @@ var genConfigCmd = &cobra.Command{ serviceConfURL = testServiceConfURL } var err error - if isDmsgHTTP { - if isPkgEnv { - if dmsgHTTPPath == visorconfig.DMSGHTTPName { - dmsgHTTPPath = visorconfig.SkywirePath + "/" + visorconfig.DMSGHTTPName //nolint - } + if isPkgEnv { + if dmsgHTTPPath == visorconfig.DMSGHTTPName { + dmsgHTTPPath = visorconfig.SkywirePath + "/" + visorconfig.DMSGHTTPName //nolint } + } + if isDmsgHTTP { if _, err := os.Stat(dmsgHTTPPath); err == nil { if !isStdout { log.Info("Found Dmsghttp config: ", dmsgHTTPPath)