Fix SwiftLint errors from latest SwiftLint release #543
Annotations
10 errors
GitHub Action for SwiftLint:
Tests/NostrSDKTests/FilterTests.swift#L22
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Tests/NostrSDKTests/FilterTests.swift#L42
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Tests/NostrSDKTests/FixtureLoading.swift#L30
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/RelayRequest.swift#L35
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/GiftWrap/SealEvent.swift#L99
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/GiftWrap/GiftWrapEvent.swift#L122
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/MuteListEvent.swift#L112
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/BookmarksListEvent.swift#L153
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/GenericRepostEvent.swift#L83
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
GitHub Action for SwiftLint:
Sources/NostrSDK/Events/MetadataEvent.swift#L187
Optional Data -> String Conversion Violation: Prefer failable `String(data:encoding:)` initializer when converting `Data` to `String` (optional_data_string_conversion)
|
Loading