testflight: return if creating temp file fails
@@ -141,6 +141,9 @@ func downloadFly(atcUrl string) (string, error) {
return "", err
}
outFile, err := ioutil.TempFile("", "fly")
+ if err != nil {
+ return "", err
+ }
defer outFile.Close()
_, err = io.Copy(outFile, readCloser)
if err != nil {
