Skip to content

Commit 4178e15

Browse files
committed
Only disable loadPropertiesFromApi on GHES
1 parent 205b6ba commit 4178e15

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/feature-flags/properties.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ test("loadPropertiesFromApi throws if response data contains unexpected objects"
5151
);
5252
});
5353

54-
test("loadPropertiesFromApi returns empty object if not on dotcom", async (t) => {
54+
test("loadPropertiesFromApi returns empty object if on GHES", async (t) => {
5555
sinon.stub(api, "getRepositoryProperties").resolves({
5656
headers: {},
5757
status: 200,

src/feature-flags/properties.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function loadPropertiesFromApi(
4444
): Promise<RepositoryProperties> {
4545
// TODO: To be safe for now; later we should replace this with a version check once we know
4646
// which version of GHES we expect this to be supported by.
47-
if (gitHubVersion.type !== GitHubVariant.DOTCOM) {
47+
if (gitHubVersion.type === GitHubVariant.GHES) {
4848
return {};
4949
}
5050

0 commit comments

Comments
 (0)