Skip to content

Commit 03553df

Browse files
committed
chore: fix linter warnings
Signed-off-by: STRRL <[email protected]>
1 parent 996ef5f commit 03553df

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pkg/cmd/cmd.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ Then, with a single command, you create and start all the services from your con
4545
}
4646
}
4747

48-
patchFileSetDatabaseConnectionURI(file, "postgres://postgres:password@rss3_node_alloydb:5432/postgres")
48+
err = patchFileSetDatabaseConnectionURI(file, "postgres://postgres:password@rss3_node_alloydb:5432/postgres")
49+
if err != nil {
50+
return err
51+
}
4952

5053
composeFile := compose.NewCompose(
5154
compose.WithWorkers(cfg.Component.Decentralized),
@@ -126,9 +129,7 @@ func patchFileSetDatabaseConnectionURI(file string, newConnectionURI string) err
126129
uriNode.Kind = yaml.ScalarNode
127130
uriNode.Tag = "!!str"
128131
uriNode.Value = newConnectionURI
129-
130132
}
131-
132133
// dump patched yaml node to file
133134
if err = f.Close(); err != nil {
134135
return fmt.Errorf("patch config file with generated access token, close config file, %w", err)

0 commit comments

Comments
 (0)