divideprojects / Alita_Robot

switch with single case can be rewritten as if or if-else CRT-A0014
Anti-pattern
Minor
2 months agoa year old
should rewrite switch statement to if statement
 68	var finalText, progressString string
 69	var progress int
 70
 71	switch action { 72	case "chats":
 73		log.Infof("Chats cleanup requested by %s", user.Username)
 74		allChats := db.GetAllChats()