8000 chore: appease formatter and linter · coder/coder@a3cc8e7 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3cc8e7

Browse files
chore: appease formatter and linter
1 parent 220f25f commit a3cc8e7

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

agent/agentcontainers/api_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package agentcontainers_test
33
import (
44
"context"
55
"encoding/json"
6-
"errors"
76
"fmt"
87
"math/rand"
98
"net/http"
@@ -1687,7 +1686,7 @@ func TestAPI(t *testing.T) {
16871686

16881687
// We're going to force the container CLI to fail, which will allow us to test the
16891688
// error handling.
1690-
var simulatedError = errors.New("simulated error")
1689+
simulatedError := xerrors.New("simulated error")
16911690
mCCLI.EXPECT().DetectArchitecture(gomock.Any(), testContainer.ID).Return("", simulatedError).Times(1)
16921691

16931692
mClock.Set(time.Now()).MustWait(ctx)

site/src/modules/resources/AgentDevcontainerCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { AppStatuses } from "pages/WorkspacePage/AppStatuses";
2424
import type { FC } from "react";
2525
import { useEffect } from "react";
2626
import { useMutation, useQueryClient } from "react-query";
27+
import { cn } from "utils/cn";
2728
import { portForwardURL } from "utils/portForward";
2829
import { AgentApps, organizeAgentApps } from "./AgentApps/AgentApps";
2930
import { AgentButton } from "./AgentButton";
@@ -34,7 +35,6 @@ import { AgentSSHButton } from "./SSHButton/SSHButton";
3435
import { SubAgentOutdatedTooltip } from "./SubAgentOutdatedTooltip";
3536
import { TerminalLink } from "./TerminalLink/TerminalLink";
3637
import { VSCodeDevContainerButton } from "./VSCodeDevContainerButton/VSCodeDevContainerButton";
37-
import { cn } from "utils/cn";
3838

3939
type AgentDevcontainerCardProps = {
4040
parentAgent: WorkspaceAgent;

site/src/modules/resources/AgentStatus.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ export const AgentStatus: FC<AgentStatusProps> = ({ agent }) => {
283283
);
284284
};
285285

286-
export const SubAgentStatus: FC<SubAgentStatusProps> = ({ agent }) => {
286+
const SubAgentStatus: FC<SubAgentStatusProps> = ({ agent }) => {
287287
if (!agent) {
288288
return <DisconnectedStatus />;
289289
}
@@ -305,7 +305,7 @@ export const SubAgentStatus: FC<SubAgentStatusProps> = ({ agent }) => {
305305
);
306306
};
307307

308-
export const DevcontainerStartError: FC<AgentStatusProps> = ({ agent }) => {
308+
const DevcontainerStartError: FC<AgentStatusProps> = ({ agent }) => {
309309
return (
310310
<HelpTooltip>
311311
<PopoverTrigger role="status" aria-label="Start error">

0 commit comments

Comments
 (0)
0