mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
only defer on finish download
This commit is contained in:
parent
0e05c68876
commit
6af451b800
|
@ -118,7 +118,7 @@ func createPackage(packageName string, targetDir string) error {
|
|||
app.Printf("Error while preparing main file: %#v", err)
|
||||
}
|
||||
|
||||
InfoPrint("\n%s package was installed successfully", packageName)
|
||||
InfoPrint("%s package was installed successfully", packageName)
|
||||
|
||||
// build & run the server
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ func DownloadZip(zipURL string, newDir string) (string, error) {
|
|||
if err != nil {
|
||||
return "", ErrFileCopy.Format(err.Error())
|
||||
}
|
||||
finish <- true
|
||||
|
||||
_ = size
|
||||
//print("OK ", size, " bytes downloaded") //we keep that here so developer will always see in the terminal if a plugin downloads something or no ?
|
||||
return fileName, nil
|
||||
|
|
Loading…
Reference in New Issue
Block a user