Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

chore(appliance): make a function less misleading#63994

Merged
Chickensoupwithrice merged 2 commits into
mainfrom
al/appliance-refactor-fn
Jul 22, 2024
Merged

chore(appliance): make a function less misleading#63994
Chickensoupwithrice merged 2 commits into
mainfrom
al/appliance-refactor-fn

Conversation

@Chickensoupwithrice

Copy link
Copy Markdown
Contributor

isNamespaced was implemented the opposite way to its name, returning
true when a resource was not namespaced. We could have renamed it to
isNotNamespaced, but then most callsites would look like a double
negative. So this commit inverts the implementation to match the name,
and also its callers.

Forked from https://github.com/sourcegraph/sourcegraph/pull/63972 to clean up the branch

Test plan

CI

Changelog

isNamespaced was implemented the opposite way to its name, returning
true when a resource was _not_ namespaced. We could have renamed it to
isNotNamespaced, but then most callsites would look like a double
negative. So this commit inverts the implementation to match the name,
and also its callers.
@cla-bot cla-bot Bot added the cla-signed label Jul 22, 2024
@Chickensoupwithrice Chickensoupwithrice merged commit 0abef7b into main Jul 22, 2024
@Chickensoupwithrice Chickensoupwithrice deleted the al/appliance-refactor-fn branch July 22, 2024 20:42
craigfurman pushed a commit that referenced this pull request Jul 31, 2024
isNamespaced was implemented the opposite way to its name, returning
true when a resource was _not_ namespaced. We could have renamed it to
isNotNamespaced, but then most callsites would look like a double
negative. So this commit inverts the implementation to match the name,
and also its callers.

<!-- PR description tips:
https://www.notion.so/sourcegraph/Write-a-good-pull-request-description-610a7fd3e613496eb76f450db5a49b6e
-->

Forked from https://github.com/sourcegraph/sourcegraph/pull/63972 to
clean up the branch

## Test plan

<!-- REQUIRED; info at
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles
-->
CI

## Changelog

<!-- OPTIONAL; info at
https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c
-->

Co-authored-by: Craig Furman <craig.furman@sourcegraph.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed no-changelog Exclude this PR from the next changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants