Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEVPROD-7728 Remove unused constants #7936

Merged
merged 2 commits into from
May 31, 2024
Merged

Conversation

hadjri
Copy link
Contributor

@hadjri hadjri commented May 30, 2024

DEVPROD-7728

Description

These constants came up as unused in a code analyzer tool and they are all old so they should be safe to remove.

Testing

Existing tests

@hadjri hadjri requested a review from a team May 30, 2024 15:54
const (
ProjectCookieName string = "mci-project-cookie"

// Key values used to map user and project data to request context.
// These are private custom types to avoid key collisions.
RequestTask reqCtxKey = iota
RequestProjectContext
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be assigned a value, even if it's just reqCtxKey = iota, no? Or else it'll be assigned the same value as the const above it (mci-project-cookie).

@hadjri hadjri requested a review from Kimchelly May 30, 2024 21:50
@hadjri hadjri merged commit dbd601e into evergreen-ci:main May 31, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants