Skip to content

Commit 7c13741

Browse files
committed
Add 'return'
1 parent 9615f58 commit 7c13741

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/SwiftRefactor/IntegerLiteralUtilities.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ extension IntegerLiteralExprSyntax {
3636
/// radix in Swift source code, e.g., "0x" for hexadecimal.
3737
public var literalPrefix: String {
3838
switch self {
39-
case .binary: "0b"
40-
case .octal: "0o"
41-
case .hex: "0x"
42-
case .decimal: ""
39+
case .binary: return "0b"
40+
case .octal: return "0o"
41+
case .hex: return "0x"
42+
case .decimal: return ""
4343
}
4444
}
4545
}

0 commit comments

Comments
 (0)