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

Commit001ccda

Browse files
chore: check container ids match inEquals function
1 parent88a611d commit001ccda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎codersdk/workspaceagents.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,8 @@ func (d WorkspaceAgentDevcontainer) Equals(other WorkspaceAgentDevcontainer) boo
427427
d.WorkspaceFolder==other.WorkspaceFolder&&
428428
d.Status==other.Status&&
429429
d.Dirty==other.Dirty&&
430+
(d.Container==nil&&other.Container==nil||
431+
(d.Container!=nil&&other.Container!=nil&&d.Container.ID==other.Container.ID))&&
430432
d.Error==other.Error
431433
}
432434

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp