Skip to content

Commit

Permalink
Fix lint issue from context.WithValue
Browse files Browse the repository at this point in the history
  • Loading branch information
vancexu committed Apr 3, 2018
1 parent a591a98 commit 8d25534
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions internal/internal_activity.go
Expand Up @@ -105,12 +105,15 @@ type (
startedTimestamp time.Time
taskList string
}

// context.WithValue need this type instead of basic type string to avoid lint error
contextKey string
)

const (
activityEnvContextKey = "activityEnv"
activityOptionsContextKey = "activityOptions"
localActivityOptionsContextKey = "localActivityOptions"
activityEnvContextKey contextKey = "activityEnv"
activityOptionsContextKey contextKey = "activityOptions"
localActivityOptionsContextKey contextKey = "localActivityOptions"
)

func getActivityEnv(ctx context.Context) *activityEnvironment {
Expand Down

0 comments on commit 8d25534

Please sign in to comment.