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 84ba1ec commit bcdfb95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions htgroup_test.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package htpasswd

import (
"github.com/stretchr/testify/assert"
"io/ioutil"
"os"
"testing"

"github.com/stretchr/testify/assert"
)

var contents = `users: user1 user2 user3
Expand All @@ -17,7 +17,7 @@ admins: user1 user2

func TestGroups(t *testing.T) {
// create temp file and write "contents" into it
var f, err = ioutil.TempFile("", "gogroups")
var f, err = os.CreateTemp("", "gogroups")
filename := f.Name()
assert.NoError(t, err)
if _, err := f.WriteString(contents); err != nil {
Expand Down

0 comments on commit bcdfb95

Please sign in to comment.