mirror of
https://github.com/apple/swift-nio-imap
synced 2026-11-29 05:24:23 +00:00
Hoist a #require the compiler flagged as redundant
This commit is contained in:
1 file changed
+2
-1
@@ -78,8 +78,9 @@ struct CharacterSetNameTests {
|
||||
|
||||
@Test("valid names round-trip in ESEARCH", arguments: validNameStrings)
|
||||
func extendedSearchRoundTrip(_ string: String) throws {
|
||||
let charset = try #require(CharacterSetName(string))
|
||||
TestUtilities.expectRoundTrip(
|
||||
ExtendedSearchOptions(key: .subject("x"), charset: try #require(CharacterSetName(string))),
|
||||
ExtendedSearchOptions(key: .subject("x"), charset: charset),
|
||||
terminator: "\r",
|
||||
encoder: { $0.writeExtendedSearchOptions($1) },
|
||||
parser: GrammarParser().parseExtendedSearchOptions
|
||||
|
||||
Reference in new issue
Block a user