Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit f76e29b

Browse files
committed
Fix logic.
Don't to try to create an `IModelService` for a non-logged-in connection.
1 parent 40e375a commit f76e29b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GitHub.Exports.Reactive/Extensions/ConnectionManagerExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public static async Task<IModelService> GetModelService(
1414
IModelServiceFactory factory)
1515
{
1616
var connection = await cm.GetConnection(repository);
17-
return connection != null ? await factory.CreateAsync(connection) : null;
17+
return connection?.IsLoggedIn == true ? await factory.CreateAsync(connection) : null;
1818
}
1919
}
2020
}

0 commit comments

Comments
 (0)