Skip to content

Commit 425aa33

Browse files
author
Marc Paquette
authored
Fixing issues with static check (#286)
``` cmd/policy-server-asg-syncer/main.go:72:3: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006) cmd/policy-server-internal/main.go:71:3: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006) cmd/policy-server/main.go:120:3: printf-style function with dynamic format string and no further arguments should use print-style function instead (SA1006) ```
1 parent 8757b96 commit 425aa33

File tree

3 files changed

+3
-3
lines changed
  • src/code.cloudfoundry.org/policy-server/cmd

3 files changed

+3
-3
lines changed

src/code.cloudfoundry.org/policy-server/cmd/policy-server-asg-syncer/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func main() {
6969
logger,
7070
)
7171
if err != nil {
72-
log.Fatalf(err.Error())
72+
log.Fatal(err.Error())
7373
}
7474

7575
securityGroupsStore := &store.SGStore{

src/code.cloudfoundry.org/policy-server/cmd/policy-server-internal/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func main() {
6868
logger,
6969
)
7070
if err != nil {
71-
log.Fatalf(err.Error())
71+
log.Fatal(err.Error())
7272
}
7373

7474
dataStore := store.New(

src/code.cloudfoundry.org/policy-server/cmd/policy-server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func main() {
117117
logger,
118118
)
119119
if err != nil {
120-
log.Fatalf(err.Error())
120+
log.Fatal(err.Error())
121121
}
122122

123123
logger.Info("db connection retrieved", lager.Data{})

0 commit comments

Comments
 (0)