mirror of
https://github.com/phranck/TUIkit.git
synced 2026-05-21 09:50:35 +00:00
Fix: Restore swiftlint:disable for false-positive empty_count
- count is an Int variable (pixel counter), not a collection .count - CI treats empty_count as error level, causing build failure
This commit is contained in:
@@ -66,7 +66,7 @@ extension ASCIIConverter {
|
||||
|
||||
// Average color for this cell
|
||||
let avgPixel: RGBA
|
||||
if count > 0 {
|
||||
if count > 0 { // swiftlint:disable:this empty_count
|
||||
avgPixel = RGBA(
|
||||
r: UInt8(clamping: totalR / count),
|
||||
g: UInt8(clamping: totalG / count),
|
||||
|
||||
Reference in New Issue
Block a user