Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed Feb 17, 2023
1 parent 4accafd commit 84ba1ec
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions htpasswd_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package htpasswd

import (
"io/ioutil"
"os"
"strings"
"testing"
Expand Down Expand Up @@ -1856,7 +1855,7 @@ func testSystemReader(t *testing.T, name string, contents string) {
}

func testSystem(t *testing.T, name string, contents string) {
f, err := ioutil.TempFile("", "gohtpasswd")
f, err := os.CreateTemp("", "gohtpasswd")
if err != nil {
t.Fatalf("Failed to make temp file: %s", err.Error())
}
Expand Down

0 comments on commit 84ba1ec

Please sign in to comment.