Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
vcc3v authored Nov 10, 2023
1 parent df705a2 commit f0497f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -905,10 +905,10 @@ func bansContains(b []Ban, addr string, id string) bool {
return false
}

func logUserActivity(user *User, action string, loggingEnabled bool) {
if !loggingEnabled { false //user logging on devzat is disabled by default, to enable please switch the statement to true
return
}
func logUserActivity(user *User, action string, loggingEnabled bool) {
if !loggingEnabled { false //logging on devzat is disabled by default, to enable logging please switch the statement to true

Check failure on line 909 in main.go

View workflow job for this annotation

GitHub Actions / build_devzat

false (untyped bool constant) is not used
return // If logging is not enabled, it exits the function immediately
}

timestamp := time.Now().Format("2010-03-07 15:04:05")
message := ""

Check failure on line 914 in main.go

View workflow job for this annotation

GitHub Actions / build_devzat

message declared and not used
Expand Down

0 comments on commit f0497f0

Please sign in to comment.