From e39e214bb039109267e4d21e698db5afc72e829c Mon Sep 17 00:00:00 2001 From: Cian Johnston Date: Fri, 15 Mar 2024 12:37:33 +0000 Subject: [PATCH] chore: apply linter auto-fixes --- cli/templatepull_test.go | 2 +- coderd/database/dbmem/dbmem.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/templatepull_test.go b/cli/templatepull_test.go index ec7beb619606e..1b1d51b0ccd02 100644 --- a/cli/templatepull_test.go +++ b/cli/templatepull_test.go @@ -328,7 +328,7 @@ func TestTemplatePull_ToDir(t *testing.T) { require.NoError(t, inv.Run()) - // Validate behaviour of choosing template name in the absence of an output path argument. + // Validate behavior of choosing template name in the absence of an output path argument. destPath := actualDest if destPath == "" { destPath = template.Name diff --git a/coderd/database/dbmem/dbmem.go b/coderd/database/dbmem/dbmem.go index 9c78858e86c93..89898f0efe55a 100644 --- a/coderd/database/dbmem/dbmem.go +++ b/coderd/database/dbmem/dbmem.go @@ -91,7 +91,7 @@ func New() database.Store { _, err = q.InsertAllUsersGroup(context.Background(), defaultOrg.ID) if err != nil { - panic(fmt.Errorf("failed to create default group: %w", err)) + panic(xerrors.Errorf("failed to create default group: %w", err)) } q.defaultProxyDisplayName = "Default"