Skip to content

Commit

Permalink
[*] switch to compound assignment operators
Browse files Browse the repository at this point in the history
  • Loading branch information
Massinja committed Mar 4, 2024
1 parent 97b3d0b commit 5ecd098
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion internal/pgengine/bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func (pge *PgEngine) getPgxConnConfig() *pgxpool.Config {
connstr = fmt.Sprintf("host='%s' port='%d' dbname='%s' sslmode='%s' user='%s'",
pge.Connection.Host, pge.Connection.Port, pge.Connection.DBName, pge.Connection.SSLMode, pge.Connection.User)
if pge.Connection.Password != "" {
connstr = connstr + fmt.Sprintf(" password='%s'", pge.Connection.Password)
connstr += fmt.Sprintf(" password='%s'", pge.Connection.Password)
}
}
connConfig, err := pgxpool.ParseConfig(connstr)
Expand Down
2 changes: 1 addition & 1 deletion internal/scheduler/chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (sch *Scheduler) retrieveChainsAndRun(ctx context.Context, reboot bool) {
var headChains []Chain
msg := "Retrieve scheduled chains to run"
if reboot {
msg = msg + " @reboot"
msg += " @reboot"
}
if reboot {
err = sch.pgengine.SelectRebootChains(ctx, &headChains)
Expand Down
2 changes: 1 addition & 1 deletion internal/scheduler/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func (sch *Scheduler) executeBuiltinTask(ctx context.Context, name string, param
if s, err = f(ctx, sch, val); err != nil {
return
}
stdout = stdout + fmt.Sprintln(s)
stdout += fmt.Sprintln(s)
}
return
}
Expand Down
2 changes: 1 addition & 1 deletion internal/tasks/files.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func DownloadUrls(ctx context.Context, urls []string, dest string, workers int)
if err = resp.Err(); err != nil {
errstrings = append(errstrings, err.Error())
} else {
out = out + fmt.Sprintf("Downloaded %s to %s\n", resp.Request.URL(), resp.Filename)
out += fmt.Sprintf("Downloaded %s to %s\n", resp.Request.URL(), resp.Filename)
}
}
if len(errstrings) > 0 {
Expand Down

0 comments on commit 5ecd098

Please sign in to comment.