diff --git a/Alignment/SourceEditorCommand.swift b/Alignment/SourceEditorCommand.swift index 9fe3d20..83f3786 100644 --- a/Alignment/SourceEditorCommand.swift +++ b/Alignment/SourceEditorCommand.swift @@ -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