Skip to content

Commit 15fd256

Browse files
committed
fix: go formatting and linter errors
Signed-off-by: Łukasz Jakimczuk <ljakimczuk@gmail.com>
1 parent 5d78895 commit 15fd256

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

pkg/extensions/config/sync/config.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ type RegistryConfig struct {
3333
RetryDelay *time.Duration
3434
OnlySigned *bool
3535
CredentialHelper string
36-
PreserveDigest bool // sync without converting
37-
ClientLogs bool // creates regclient log/slog logger
36+
PreserveDigest bool // sync without converting
37+
ClientLogs bool // creates regclient log/slog logger
3838
ClientLogsLevel string // defines regclient log/slog logger level
39-
ConcurrentRequests int64 // reqclient active requests
39+
ConcurrentRequests int64 // reqclient active requests
4040
}
4141

4242
type Content struct {

pkg/extensions/sync/service.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ func newClient(opts syncconf.RegistryConfig, credentials syncconf.CredentialsFil
881881
}
882882

883883
if opts.ClientLogs {
884-
ho := &slog.HandlerOptions{AddSource: true}
884+
handlerOpts := &slog.HandlerOptions{AddSource: true}
885885

886886
if opts.ClientLogsLevel != "" {
887887
lvl := slog.Level(0)
@@ -891,10 +891,10 @@ func newClient(opts syncconf.RegistryConfig, credentials syncconf.CredentialsFil
891891
return nil, nil, err
892892
}
893893

894-
ho.Level = lvl
894+
handlerOpts.Level = lvl
895895
}
896896

897-
clientOpts = append(clientOpts, regclient.WithSlog(slog.New(slog.NewJSONHandler(os.Stdout, ho))))
897+
clientOpts = append(clientOpts, regclient.WithSlog(slog.New(slog.NewJSONHandler(os.Stdout, handlerOpts))))
898898
}
899899

900900
client := regclient.New(clientOpts...)

0 commit comments

Comments
 (0)