Skip to content

Commit 8b96c33

Browse files
committed
Rename variable
1 parent 51d882b commit 8b96c33

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func main() {
4747

4848
// Read the settings from the configuration file
4949
openReq := &rpc.ConfigurationOpenRequest{SettingsFormat: "yaml"}
50-
var configFileLoadingWarnings []string
50+
var configFileWarnings []string
5151
if configData, err := paths.New(configFile).ReadFile(); err == nil {
5252
openReq.EncodedSettings = string(configData)
5353
} else if !os.IsNotExist(err) {
@@ -57,7 +57,7 @@ func main() {
5757
feedback.FatalError(fmt.Errorf("couldn't load configuration: %w", err), feedback.ErrGeneric)
5858
} else if warnings := resp.GetWarnings(); len(warnings) > 0 {
5959
// Save the warnings to show them later when the feedback package is fully initialized
60-
configFileLoadingWarnings = warnings
60+
configFileWarnings = warnings
6161
}
6262

6363
// Get the current settings from the server
@@ -82,7 +82,7 @@ func main() {
8282
// only if we are inside the "config ..." command. In JSON mode always
8383
// output the warning.
8484
if feedback.GetFormat() != feedback.Text || (cmd.HasParent() && cmd.Parent().Name() == "config") {
85-
for _, warning := range configFileLoadingWarnings {
85+
for _, warning := range configFileWarnings {
8686
feedback.Warning(fmt.Sprintf("%s: %s", i18n.Tr("Invalid value in configuration"), warning))
8787
}
8888
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy