Skip to content

Commit 252b7d5

Browse files
committed
cleanup
1 parent 8a049a0 commit 252b7d5

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,14 @@ struct JExtractSwiftBuildToolPlugin: SwiftJavaPluginProtocol, BuildToolPlugin {
131131
// If the developer has enabled java callbacks in the configuration (default is false)
132132
// and we are running in JNI mode, we will run additional phases in this build plugin
133133
// to generate Swift wrappers using wrap-java that can be used to callback to Java.
134-
let shouldRunJavaCallbacksPhases = if let configuration, configuration.enableJavaCallbacks ?? false, configuration.effectiveMode == .jni {
135-
true
136-
} else {
137-
false
138-
}
134+
let shouldRunJavaCallbacksPhases =
135+
if let configuration,
136+
configuration.enableJavaCallbacks == true,
137+
configuration.effectiveMode == .jni {
138+
true
139+
} else {
140+
false
141+
}
139142

140143
// Extract list of all sources
141144
let javaSourcesListFileName = "jextract-generated-sources.txt"

0 commit comments

Comments
 (0)