Skip to content

Conversation

@PyvesB
Copy link
Member

@PyvesB PyvesB commented Oct 18, 2025

Continuing the dependency audit started in #11425.

SKIP_INTERCEPTED is in all likelihood rarely if ever leveraged when running the tests. Rather that depending on an external dependency to support different input formats (SKIP_INTERCEPTED=TRUE, SKIP_INTERCEPTED=true, SKIP_INTERCEPTED=1), let's just force contributors to use the lowercase version whenever one of them next feels the need to use this flag.

@PyvesB PyvesB added the core Server, BaseService, GitHub auth, Shared helpers label Oct 18, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 18, 2025

Messages
📖 ✨ Thanks for your contribution to Shields, @PyvesB!

Generated by 🚫 dangerJS against ba2292c

@jNullj jNullj changed the title Stop depending on node-env-flag Remove node-env-flag dependency Oct 18, 2025
@jNullj jNullj added the dependencies Related to dependency updates label Oct 18, 2025
Copy link
Member

@jNullj jNullj left a comment

Choose a reason for hiding this comment

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

Just loving those code shrinking PR.

}

const skipIntercepted = envFlag(process.env.SKIP_INTERCEPTED, false)
const skipIntercepted = process.env.SKIP_INTERCEPTED === 'true'
Copy link
Member

Choose a reason for hiding this comment

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

We don't have to give up functionality.

Suggested change
const skipIntercepted = process.env.SKIP_INTERCEPTED === 'true'
const skipIntercepted = process.env.SKIP_INTERCEPTED.trim().toLowerCase() === 'true'

Copy link
Member Author

Choose a reason for hiding this comment

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

That won't work, as process.env.SKIP_INTERCEPTED can be undefined; we'd also not be covering the SKIP_INTERCEPTED=1 case, which was technically previously supported.

Given probably no one has used this option in years, I really think we should go with the simplest implementation possible, i.e. the equality check. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Server, BaseService, GitHub auth, Shared helpers dependencies Related to dependency updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants