Skip to content

Commit

Permalink
Disable force cast rule for necessary force cast
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 16, 2024
1 parent 2566f12 commit 2fae773
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Sources/CocoaLumberjackSwift/CocoaLumberjack.swift
Original file line number Diff line number Diff line change
Expand Up @@ -241,6 +241,7 @@ public struct DDLogMessageFormat: ExpressibleByStringInterpolation {
""")
}
// This should be safe, sine the compiler should convert it to the reference.
// swiftlint:disable:next force_cast
storage.addValue(convertible as? CVarArg ?? convertible as! Convertible.ReferenceType, withSpecifier: "%@")
}

Expand Down

0 comments on commit 2fae773

Please sign in to comment.