优化代码

This commit is contained in:
刘祥超
2023-08-08 14:17:16 +08:00
parent 22aca2e80c
commit 5db14ec84a
58 changed files with 159 additions and 125 deletions

View File

@@ -142,5 +142,5 @@ func (this *ComponentsAction) RunGet(params struct{}) {
componentsDataSum = fmt.Sprintf("%x", h.Sum(nil))
this.AddHeader("ETag", "\""+componentsDataSum+"\"")
this.Write(componentsData)
_, _ = this.Write(componentsData)
}

View File

@@ -63,6 +63,6 @@ func (this *ImageAction) RunGet(params struct {
if chunkResp.FileChunk == nil {
continue
}
this.Write(chunkResp.FileChunk.Data)
_, _ = this.Write(chunkResp.FileChunk.Data)
}
}