Skip to content

Commit 0e6248f

Browse files
committed
Silence linter warning
1 parent 068d4ce commit 0e6248f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: internal/project/projectdata/library.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ func InitializeForLibrary(project project.Type) {
8080

8181
// Write the index data to file
8282
libraryIndexFile, err := libraryIndexPath.Create()
83-
defer libraryIndexFile.Close()
8483
if err != nil {
8584
panic(err)
8685
}
86+
defer libraryIndexFile.Close()
8787
if _, err := io.Copy(libraryIndexFile, httpResponse.Body); err != nil {
8888
panic(err)
8989
}

0 commit comments

Comments
 (0)