Skip to content

Commit c262c32

Browse files
erwinmazaerwin-CL
authored andcommitted
Remove unnecessary 'break' statements and extraneous line breaks in Swift
1 parent 2a0f162 commit c262c32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SCXcodeSwitchExpander/DVTTextCompletionController+SCXcodeSwitchExpander.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ - (BOOL)tryExpandingSwitchStatement
154154
if([switchContent rangeOfString:child.displayName].location == NSNotFound) {
155155
if ([[SCXcodeSwitchExpander sharedSwitchExpander] isSwift]) {
156156
NSString *childDisplayName = [self correctEnumConstantIfFromCocoa:[NSString stringWithFormat:@"%@",symbol] symbolName:symbolName cocoaEnumName:child.displayName];
157-
[replacementString appendString:[NSString stringWithFormat:@"case .%@: \n<#statement#>\nbreak\n\n", childDisplayName]];
157+
[replacementString appendString:[NSString stringWithFormat:@"case .%@: \n<#statement#>\n", childDisplayName]];
158158
} else {
159159
[replacementString appendString:[NSString stringWithFormat:@"case %@: {\n<#statement#>\nbreak;\n}\n", child.displayName]];
160160
}

0 commit comments

Comments
 (0)