Skip to content

Commit

Permalink
Silence linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
cmaglie committed Oct 16, 2024
1 parent 068d4ce commit 0e6248f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/project/projectdata/library.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ func InitializeForLibrary(project project.Type) {

// Write the index data to file
libraryIndexFile, err := libraryIndexPath.Create()
defer libraryIndexFile.Close()
if err != nil {
panic(err)
}
defer libraryIndexFile.Close()
if _, err := io.Copy(libraryIndexFile, httpResponse.Body); err != nil {
panic(err)
}
Expand Down

0 comments on commit 0e6248f

Please sign in to comment.