Skip to content

Commit f090196

Browse files
committed
lint
1 parent 816660c commit f090196

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coderd/prometheusmetrics/prometheusmetrics_test.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ import (
1111
"testing"
1212
"time"
1313

14-
"github.com/coder/coder/v2/cryptorand"
1514
"github.com/google/uuid"
1615
"github.com/prometheus/client_golang/prometheus"
1716
"github.com/stretchr/testify/assert"
1817
"github.com/stretchr/testify/require"
1918
"tailscale.com/tailcfg"
2019

20+
"github.com/coder/coder/v2/cryptorand"
21+
2122
"cdr.dev/slog"
2223
"cdr.dev/slog/sloggers/slogtest"
2324

coderd/workspaceapps/request.go

+1
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ func (r Request) getDatabase(ctx context.Context, db database.Store) (*databaseR
294294
potentialPortStr = strings.TrimSuffix(r.AppSlugOrPort, "s")
295295
portUint, portUintErr = strconv.ParseUint(potentialPortStr, 10, 16)
296296
)
297+
//nolint:nestif
297298
if portUintErr == nil {
298299
protocol := "http"
299300
if strings.HasSuffix(r.AppSlugOrPort, "s") {

0 commit comments

Comments
 (0)