Skip to content

Commit dc4716d

Browse files
committed
⚰️ Remove unnecessary function type parameters
1 parent 8851e19 commit dc4716d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controller/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ func GetHandler(c *gin.Context) {
118118
var path = u.Path
119119

120120
// count
121-
counts := core.Get(c, host, path, c.GetString("user_identity"))
121+
counts := core.Get(c, host, path)
122122

123123
// json
124124
c.JSON(200, gin.H{

core/count.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ func Put(ctx context.Context, host string, path string, userIdentity string) {
8282
}
8383

8484
// Get bsz counts
85-
func Get(ctx context.Context, host string, path string, userIdentity string) Counts {
85+
func Get(ctx context.Context, host string, path string) Counts {
8686
_redis := redisutil.RDB
8787

8888
rk := getKeys(host, path)

0 commit comments

Comments
 (0)