Skip to content

Commit 6d40673

Browse files
committed
Write variable users lowercase
1 parent b3081f2 commit 6d40673

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

auth/file.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ func NewFileAuthenticator(file string, sep string) (*FileAuthenticator, error) {
5353
var nextUser User
5454

5555
// Reserve space for the ordered users list in memory.
56-
Users := make([]User, 0, 50)
56+
users := make([]User, 0, 50)
5757

5858
// Open file with authentication information.
5959
handle, err = os.Open(file)
@@ -79,7 +79,7 @@ func NewFileAuthenticator(file string, sep string) (*FileAuthenticator, error) {
7979
}
8080

8181
// Append new user element to slice.
82-
Users = append(Users, nextUser)
82+
users = append(users, nextUser)
8383

8484
// Increment original ID counter.
8585
i++
@@ -91,13 +91,13 @@ func NewFileAuthenticator(file string, sep string) (*FileAuthenticator, error) {
9191
}
9292

9393
// Sort users list to search it efficiently later on.
94-
sort.Sort(UsersByName(Users))
94+
sort.Sort(UsersByName(users))
9595

9696
return &FileAuthenticator{
9797
lock: new(sync.RWMutex),
9898
File: file,
9999
Separator: sep,
100-
Users: Users,
100+
Users: users,
101101
}, nil
102102
}
103103

0 commit comments

Comments
 (0)