mirror of
https://github.com/ypresto/SwiftLintXcode.git
synced 2026-03-25 08:55:51 +00:00
Fix not checking whether swift file or not...
This commit is contained in:
parent
62d37329cc
commit
4246f4cc72
1 changed files with 1 additions and 1 deletions
|
|
@ -31,7 +31,7 @@ final class SaveHook {
|
|||
|
||||
class func tryOnSaveDocument(document: NSDocument) -> Bool {
|
||||
if !enabled { return true }
|
||||
Formatter.isFormattableDocument(document)
|
||||
if !Formatter.isFormattableDocument(document) { return true }
|
||||
let sourceCodeDocument: IDESourceCodeDocument = SwiftLintXcodeTRVSXcode.sourceCodeDocument()
|
||||
guard sourceCodeDocument == document else { return true }
|
||||
return Formatter.sharedInstance.tryFormatDocument(sourceCodeDocument)
|
||||
|
|
|
|||
Loading…
Reference in a new issue