Skip to content

Commit

Permalink
doc a bit more
Browse files Browse the repository at this point in the history
  • Loading branch information
azr committed Jan 8, 2019
1 parent 46d4103 commit 83d4bc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ against checksum_url for a match/guess.
In case a different hashing algorithm is in the filename of checksum_url
it is recommended to explicitly set hashing algorithm instead; the
outcome would be undetermined otherwise.
Once go-getter is done with the file; it is deleted.

The checksum query parameter is never sent to the backend protocol
implementation. It is used at a higher level by go-getter itself.
Expand Down
2 changes: 1 addition & 1 deletion checksum.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func checksumsFromFile(checksumFile string, src *url.URL) (checkSums map[string]
return nil, fmt.Errorf(
"Error opening downloaded file: %s", err)
}
defer f.Close()
defer f.Close() // last defer comes first
rd := bufio.NewReader(f)
res := map[string]string{}
for {
Expand Down

0 comments on commit 83d4bc7

Please sign in to comment.