We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2268bb6 commit 541cc19Copy full SHA for 541cc19
Sources/JExtractSwiftLib/Swift2Java.swift
@@ -124,8 +124,17 @@ public struct SwiftToJava {
124
}
125
126
func canExtract(from file: URL) -> Bool {
127
- file.lastPathComponent.hasSuffix(".swift") ||
128
- file.lastPathComponent.hasSuffix(".swiftinterface")
+ guard file.lastPathComponent.hasSuffix(".swift") else {
+ return false
129
+ }
130
+ guard file.lastPathComponent.hasSuffix(".swiftinterface") else {
131
132
133
+ guard !file.lastPathComponent.hasSuffix("+SwiftJava.swift") else {
134
135
136
+
137
+ return true
138
139
140
0 commit comments