Skip to content

Commit

Permalink
Fixed issues when aligning multiple types at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
tid-kijyun committed Mar 20, 2017
1 parent 06d4613 commit 0cc9572
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Alignment/SourceEditorCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ class SourceEditorCommand: NSObject, XCSourceEditorCommand {
let isEnableTypeDeclaration = def?.object(forKey: "KEY_ENABLE_TYPE_DECLARATION") as? Bool ?? false

do {
if isEnableAssignment {
try alignAssignment(invocation: invocation, selection: selection)
}

if isEnableTypeDeclaration {
try alignTypeDeclaration(invocation: invocation, selection: selection)
}

if isEnableAssignment {
try alignAssignment(invocation: invocation, selection: selection)
}
} catch {
completionHandler(NSError(domain: "SampleExtension", code: -1, userInfo: [NSLocalizedDescriptionKey: ""]))
return
Expand Down

0 comments on commit 0cc9572

Please sign in to comment.