Skip to content

Commit 1189f4c

Browse files
RISCfutureclaude
andcommitted
Remove format: .number from Linux string interpolations
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d5659e7 commit 1189f4c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

Sources/SwiftCIFP/Parser/CIFPError.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
223223
bundle: .module
224224
)
225225
#else
226-
return "Failed to parse \(field)\(value)” at line \(line, format: .number)."
226+
return Failed to parse \(field)\(value)” at line \(line).
227227
#endif
228228
case .fileNotFound(let url):
229229
#if canImport(Darwin)
@@ -248,7 +248,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
248248
bundle: .module
249249
)
250250
#else
251-
return "Line \(line, format: .number) has \(actual, format: .number) characters but \(expected, format: .number) are required."
251+
return "Line \(line) has \(actual) characters but \(expected) are required."
252252
#endif
253253
case let .unknownSectionCode(code, line):
254254
#if canImport(Darwin)
@@ -257,7 +257,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
257257
bundle: .module
258258
)
259259
#else
260-
return "Unknown section code “\(code)” at line \(line, format: .number)."
260+
return Unknown section code “\(code)” at line \(line).
261261
#endif
262262
case let .unknownRecordType(type, line):
263263
#if canImport(Darwin)
@@ -266,7 +266,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
266266
bundle: .module
267267
)
268268
#else
269-
return "Unknown record type “\(String(type))” at line \(line, format: .number)."
269+
return Unknown record type “\(String(type))” at line \(line).
270270
#endif
271271
case let .missingRequiredField(field, recordType, line):
272272
#if canImport(Darwin)
@@ -276,7 +276,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
276276
bundle: .module
277277
)
278278
#else
279-
return "Field “\(field)” is required for \(recordType) at line \(line, format: .number)."
279+
return Field “\(field)” is required for \(recordType) at line \(line).
280280
#endif
281281
case let .unknownSubsectionCode(section, subsection, line):
282282
#if canImport(Darwin)
@@ -286,7 +286,7 @@ public enum CIFPError: Error, LocalizedError, Sendable {
286286
bundle: .module
287287
)
288288
#else
289-
return "Unknown subsection “\(String(subsection))” in section “\(section)” at line \(line, format: .number)."
289+
return Unknown subsection “\(String(subsection))” in section “\(section)” at line \(line).
290290
#endif
291291
case let .aggregationError(recordType, identifier, reason):
292292
let reasonString: String =

0 commit comments

Comments
 (0)