Skip to content

Commit 017242d

Browse files
committed
github: fix defer in for loop
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent 13ec9aa commit 017242d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/client_repository_file.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func (c *FileClient) Get(ctx context.Context, path, branch string, optFns ...git
6868
if err != nil {
6969
return nil, err
7070
}
71-
defer output.Close()
71+
output.Close()
7272

7373
contentStr := string(content)
7474
files = append(files, &gitprovider.CommitFile{

0 commit comments

Comments
 (0)