Skip to content

Commit f4f849b

Browse files
committed
linting
1 parent bcfd754 commit f4f849b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

coderd/files/cache.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ func NewFromStore(store database.Store, registerer prometheus.Registerer, authz
2727
fetch := func(ctx context.Context, fileID uuid.UUID) (cacheEntryValue, error) {
2828
// Make sure the read does not fail due to authorization issues.
2929
// Authz is checked on the Acquire call, so this is safe.
30+
//nolint:gocritic
3031
file, err := store.GetFileByID(dbauthz.AsFileReader(ctx), fileID)
3132
if err != nil {
3233
return cacheEntryValue{}, xerrors.Errorf("failed to read file from database: %w", err)

coderd/files/cache_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/coder/coder/v2/testutil"
2020
)
2121

22+
// nolint:paralleltest,tparallel // Serially testing is easier
2223
func TestCacheRBAC(t *testing.T) {
2324
t.Parallel()
2425

@@ -43,6 +44,7 @@ func TestCacheRBAC(t *testing.T) {
4344
Scope: rbac.ScopeAll,
4445
})
4546

47+
//nolint:gocritic // Unit testing
4648
cacheReader := dbauthz.AsFileReader(ctx)
4749

4850
t.Run("NoRolesOpen", func(t *testing.T) {

0 commit comments

Comments
 (0)