Skip to content

Commit 26e3418

Browse files
committed
make lint
1 parent 1034c0c commit 26e3418

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cli/agent.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
4343
prometheusAddress string
4444
debugAddress string
4545
slogHumanPath string
46-
slogJsonPath string
46+
slogJSONPath string
4747
slogStackdriverPath string
4848
)
4949
cmd := &clibase.Cmd{
@@ -76,11 +76,9 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
7676

7777
case "/dev/stdout":
7878
sinks = append(sinks, sinkFn(inv.Stdout))
79-
break
8079

8180
case "/dev/stderr":
8281
sinks = append(sinks, sinkFn(inv.Stderr))
83-
break
8482

8583
default:
8684
fi, err := os.OpenFile(loc, os.O_WRONLY|os.O_CREATE|os.O_APPEND, 0o644)
@@ -96,7 +94,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
9694
if err := addSinkIfProvided(sloghuman.Sink, slogHumanPath); err != nil {
9795
return xerrors.Errorf("add human sink: %w", err)
9896
}
99-
if err := addSinkIfProvided(slogjson.Sink, slogJsonPath); err != nil {
97+
if err := addSinkIfProvided(slogjson.Sink, slogJSONPath); err != nil {
10098
return xerrors.Errorf("add json sink: %w", err)
10199
}
102100
if err := addSinkIfProvided(slogstackdriver.Sink, slogStackdriverPath); err != nil {
@@ -350,7 +348,7 @@ func (r *RootCmd) workspaceAgent() *clibase.Cmd {
350348
Flag: "log-json",
351349
Env: "CODER_AGENT_LOGGING_JSON",
352350
Default: "",
353-
Value: clibase.StringOf(&slogJsonPath),
351+
Value: clibase.StringOf(&slogJSONPath),
354352
},
355353
{
356354
Name: "Stackdriver Log Location",

0 commit comments

Comments
 (0)