You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: firebase-dataconnect/gradleplugin/plugin/src/main/kotlin/com/google/firebase/dataconnect/gradle/plugin/DataConnectGenerateCodeTask.kt
+1-4Lines changed: 1 addition & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -194,10 +194,9 @@ private fun determineCallingConvention(
194
194
callingConvention,
195
195
logFile.absolutePath
196
196
)
197
-
val logFileStream = logFile.outputStream()
198
197
199
198
val exitCode:Int=
200
-
try {
199
+
logFile.outputStream().use { logFileStream ->
201
200
execOperations
202
201
.exec { execSpec ->
203
202
execSpec.run {
@@ -212,8 +211,6 @@ private fun determineCallingConvention(
0 commit comments