mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
fix broken vet, format some stuff
This commit is contained in:
1 parent
fab4f4e97d
commit
b1d59bf890
6 files changed
+9
-9
No files matched your search
@@ -65,7 +65,7 @@ func TestWriteJunit(t *testing.T) {
|
||||
|
||||
for _, test := range tests {
|
||||
// create tmp file using os.TempDir()
|
||||
tmpfile, err := os.Create(filepath.Join(tmpPath, test.testReportName+".xml"))
|
||||
tmpfile, err := os.Create(filepath.Join(t.TempDir(), test.testReportName+".xml"))
|
||||
if err != nil {
|
||||
os.Remove(tmpfile.Name())
|
||||
t.Error(err)
|
||||
|
||||
Reference in new issue
Block a user