git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] nicolaferraro closed pull request #231: temporary build folder not cleaned up


nicolaferraro closed pull request #231: temporary build folder not cleaned up
URL: https://github.com/apache/camel-k/pull/231
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/pkg/builder/builder.go b/pkg/builder/builder.go
index 430933bb..0877e278 100644
--- a/pkg/builder/builder.go
+++ b/pkg/builder/builder.go
@@ -134,7 +134,7 @@ func (b *defaultBuilder) submit(request Request) {
 		r.Error = err
 	}
 
-	os.RemoveAll(builderPath)
+	defer os.RemoveAll(builderPath)
 
 	// update the cache
 	b.request.Store(request.Identifier, r)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@xxxxxxxxxxxxxxxx


With regards,
Apache Git Services