Skip to content

Commit 1036b14

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 1552bab commit 1036b14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/MacroTestingTests/MacroExamples/URLMacro.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public enum URLMacro: ExpressionMacro {
2929
throw CustomError.message("#URL requires a static string literal")
3030
}
3131

32-
guard let _ = URL(string: literalSegment.content.text) else {
32+
guard URL(string: literalSegment.content.text) != nil else {
3333
throw CustomError.message("malformed url: \(argument)")
3434
}
3535

0 commit comments

Comments
 (0)