Skip to content

Commit 2ae24fc

Browse files
committed
Refactor
1 parent 1d748f4 commit 2ae24fc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.golangci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ linters:
4545
- prealloc
4646
- predeclared
4747
- revive
48-
- stylecheck
48+
- staticcheck
4949
- thelper
5050
- tparallel
5151
- typecheck

shared/services/stader/client.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -798,18 +798,18 @@ func (c *Client) UpdateGuardianConfiguration(contents []byte) error {
798798

799799
guardianTemplatePath, err := homedir.Expand(fmt.Sprintf("%s/%s/%s", c.configPath, templatesDir, GuardianFileTemplate))
800800
if err != nil {
801-
return fmt.Errorf("Error expanding Guardian template path: %w", err)
801+
return fmt.Errorf("error expanding Guardian template path: %w", err)
802802
}
803803

804804
guardianConfigPath, err := homedir.Expand(fmt.Sprintf("%s/%s", c.configPath, GuardianFile))
805805
if err != nil {
806-
return fmt.Errorf("Error expanding guardian config file path: %w", err)
806+
return fmt.Errorf("error expanding guardian config file path: %w", err)
807807
}
808808

809809
// Write the actual Prometheus config file
810810
err = os.WriteFile(guardianTemplatePath, contents, 0664)
811811
if err != nil {
812-
return fmt.Errorf("Could not write guardian config file to %s: %w", shellescape.Quote(guardianConfigPath), err)
812+
return fmt.Errorf("could not write guardian config file to %s: %w", shellescape.Quote(guardianConfigPath), err)
813813
}
814814

815815
return nil

0 commit comments

Comments
 (0)