fix: improve error handling and readability in ability.go

This commit is contained in:
CaIon
2025-08-02 14:06:12 +08:00
parent 7188749cb3
commit 74ec34da67
2 changed files with 6 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ func FixAbility() (int, int, error) {
}
var channels []*Channel
// Find all channels
err = DB.Model(&Channel{}).Find(&channels).Error
err := DB.Model(&Channel{}).Find(&channels).Error
if err != nil {
return 0, 0, err
}