fix: 修复 golangci-lint gosimple/ineffassign/staticcheck 错误

This commit is contained in:
2026-04-20 04:48:25 +08:00
parent aebdb5ce70
commit 5a5c652264
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -225,7 +225,7 @@ func (service sessionService) Decrypt(item *model.Session) error {
}
func (service sessionService) renderBoolToStr(b *bool) string {
if *(b) == true {
if *b {
return "1"
}
return "0"