File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
plugin/src/main/kotlin/org/gradle/dependencygraph/extractor Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -101,14 +101,16 @@ abstract class DependencyExtractor :
101
101
val details: D ? = buildOperation.details.let {
102
102
if (it is D ) it else null
103
103
}
104
- val result : R ? = finishEvent.result. let {
105
- if (it is R ) it else null
104
+ if (details == null ) {
105
+ return // Ignore other build operation types
106
106
}
107
- if (details == null && result == null ) {
108
- return
109
- } else if (details == null || result = = null ) {
110
- throw IllegalStateException ( " buildOperation.details & finishedEvent.result were unexpected types " )
107
+
108
+ val failure = finishEvent.failure
109
+ if (failure ! = null ) {
110
+ throw failure
111
111
}
112
+
113
+ val result: R = finishEvent.result as R
112
114
handler(details, result)
113
115
}
114
116
You can’t perform that action at this time.
0 commit comments