Skip to content

Commit f577f1f

Browse files
committed
Fix invalid check
1 parent 9107136 commit f577f1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ws-daemon/pkg/daemon/rootfsquota.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ func (c *ContainerRootFSQuotaEnforcer) WorkspaceAdded(ctx context.Context, ws *d
2424
}
2525

2626
loc, err := disp.Runtime.ContainerRootfs(ctx, ws.ContainerID, container.OptsContainerRootfs{Unmapped: false})
27-
if err == nil {
27+
if err != nil {
2828
return xerrors.Errorf("cannot find container rootfs: %w", err)
2929
}
3030

0 commit comments

Comments
 (0)