Skip to content

Commit

Permalink
remove: duplicate variable initialization (#61)
Browse files Browse the repository at this point in the history
Var of type int64 is default to 0 if not given init value.
  • Loading branch information
juroberttyb authored Dec 26, 2023
1 parent ada9c3e commit 555b06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/getSizeHandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func GetSizeHandler(c *gin.Context) {
var cdnSize int64 = 0
var cdnSize int64

err := filepath.Walk(util.ExPath+"/uploads",
func(path string, info os.FileInfo, err error) error {
Expand Down

0 comments on commit 555b06f

Please sign in to comment.