From c6679a7aae7abf8a77c6827e583f2efb2a3f10a2 Mon Sep 17 00:00:00 2001 From: 70sh1 <70sh1@proton.me> Date: Wed, 3 Apr 2024 05:00:51 +0300 Subject: [PATCH] style: minor formatting --- pathutils/pathutils_test.go | 3 ++- testutils/testutils.go | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pathutils/pathutils_test.go b/pathutils/pathutils_test.go index ed831e3..0a334b5 100644 --- a/pathutils/pathutils_test.go +++ b/pathutils/pathutils_test.go @@ -37,7 +37,8 @@ func TestHasDuplicates(t *testing.T) { { in: []string{""}, expected: false, - }} + }, + } for _, tCase := range cases { result := hasDuplicates(tCase.in) require.Equal(t, tCase.expected, result) diff --git a/testutils/testutils.go b/testutils/testutils.go index da8b376..540b404 100644 --- a/testutils/testutils.go +++ b/testutils/testutils.go @@ -9,7 +9,7 @@ func TestFilesSetup() string { tmpDir, err := os.MkdirTemp(".", "test-tmp-*") PanicIfErr(err) - if err := os.Mkdir(filepath.Join(tmpDir, "dir1"), 0700); err != nil { + if err := os.Mkdir(filepath.Join(tmpDir, "dir1"), 0o700); err != nil { panic(err) }