From 4f13e58a6a1da06fc909e796d89c7c4ba427f1d4 Mon Sep 17 00:00:00 2001 From: 417-72KI <417.72ki@gmail.com> Date: Sun, 1 Oct 2023 14:31:47 +0900 Subject: [PATCH] avoid `force_cast` --- Sources/Generator/Parser.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/Generator/Parser.swift b/Sources/Generator/Parser.swift index de12f73..2e5d301 100644 --- a/Sources/Generator/Parser.swift +++ b/Sources/Generator/Parser.swift @@ -32,6 +32,7 @@ private extension Parser { guard let extractedValue = extractProperties(value) else { return nil } // FIXME: when value is `0` or `1`, it may parsed as Bool unexpectedly. if extractedValue is Bool, !key.hasPrefix("is") { + // swiftlint:disable:next force_cast return (key, value as! Int) } return (key, extractedValue)