From 0d4b73c94b45e0e362c08358509cd1ef70692310 Mon Sep 17 00:00:00 2001 From: Jared Harper Date: Thu, 1 Aug 2024 08:44:01 -0700 Subject: [PATCH] Change placement of err check --- internal/config/config_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 794e1020..3347ba4b 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -346,11 +346,11 @@ func TestYamlConfig(t *testing.T) { require.NoError(t, err) f, err := os.CreateTemp("", "*-test-config.yaml") + require.NoError(t, err) defer func() { _ = f.Close() os.Remove(f.Name()) }() - require.NoError(t, err) err = os.WriteFile(f.Name(), out, 0644) require.NoError(t, err)