Skip to content

Commit

Permalink
fix undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Jun 27, 2024
1 parent 3cef3c9 commit c8808b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion management/cmd/management.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ var (
PreRunE: func(cmd *cobra.Command, args []string) error {
flag.Parse()

ctx := context.WithValue(cmd.Context(), formatter.LogSourceKey, formatter.SystemSource)
ctx := context.WithValue(cmd.Context(), formatter.ExecutionContextKey, formatter.SystemSource)

Check failure on line 84 in management/cmd/management.go

View workflow job for this annotation

GitHub Actions / lint (macos-latest)

SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)

Check failure on line 84 in management/cmd/management.go

View workflow job for this annotation

GitHub Actions / lint (windows-latest)

SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)

Check failure on line 84 in management/cmd/management.go

View workflow job for this annotation

GitHub Actions / lint (ubuntu-latest)

SA1029: should not use built-in type string as key for value; define your own type to avoid collisions (staticcheck)

err := util.InitLog(logLevel, logFile)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion management/cmd/migration_up.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var upCmd = &cobra.Command{
}

//nolint
ctx := context.WithValue(cmd.Context(), formatter.LogSourceKey, formatter.SystemSource)
ctx := context.WithValue(cmd.Context(), formatter.ExecutionContextKey, formatter.SystemSource)

if err := server.MigrateFileStoreToSqlite(ctx, mgmtDataDir); err != nil {
return err
Expand Down

0 comments on commit c8808b8

Please sign in to comment.