fix(web-console): zip invalid — Close() после Bytes() (v0.1.6)
This commit is contained in:
@@ -27,7 +27,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: funcs
|
||||
image: naeel/sless-funcs-service:v0.1.5
|
||||
image: naeel/sless-funcs-service:v0.1.6
|
||||
ports:
|
||||
- containerPort: 8090
|
||||
env:
|
||||
|
||||
@@ -774,7 +774,10 @@ func buildZipFiles(files map[string]string) ([]byte, error) {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
return buf.Bytes(), zw.Close()
|
||||
if err := zw.Close(); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return buf.Bytes(), nil
|
||||
}
|
||||
|
||||
// proxyFnStatus отдаёт текущий phase+url функции/сервиса — используется для UI polling.
|
||||
|
||||
Reference in New Issue
Block a user