Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite028b3c

Browse files
committed
update for CredentialModel having a Uri type
1 parent7f6d7d4 commite028b3c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎App/Services/UriHandler.cs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,9 +140,9 @@ private void CheckAuthority(Uri uri, string errTitle)
140140
$"Failed to open '{uri.AbsolutePath}' because you are not signed in.");
141141
}
142142

143-
// here we assume that the URL isvalid since the credentials are marked valid. If not it's an internal error
143+
// here we assume that the URL isnon-null since the credentials are marked valid. If not it's an internal error
144144
// and the App will handle catching the exception and logging it.
145-
varcoderUri=newUri(credentialModel.CoderUrl!);
145+
varcoderUri=credentialModel.CoderUrl!;
146146
if(uri.Authority!=coderUri.Authority)
147147
{
148148
logger.LogWarning(

‎Tests.App/Services/UriHandlerTest.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public void AgentWorkspaceAndCredentialFixtures()
6464
credentialModel1=newCredentialModel
6565
{
6666
State=CredentialState.Valid,
67-
CoderUrl="https://coder.test",
67+
CoderUrl=newUri("https://coder.test"),
6868
};
6969
}
7070

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp