mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-07-19 16:02:21 +00:00
Complete the fix in commit c591959fa9.
Staticcheck should have a lint for using `defer` in a loop, but it does not. V12-Ref: F-77363
This commit is contained in:
+1
-1
@@ -73,7 +73,7 @@ func CollectTar(
|
||||
}
|
||||
blobData, err = io.ReadAll(blobReader)
|
||||
if closer, ok := blobReader.(io.Closer); ok {
|
||||
defer closer.Close()
|
||||
closer.Close()
|
||||
}
|
||||
if err != nil {
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user