Commit 9f5ba438 authored by Sandeep S. Shewalkar's avatar Sandeep S. Shewalkar
Browse files

Bug removed

parent 6f54a0b6
Branches
Tags
1 merge request!7Downloader
Showing with 1 addition and 1 deletion
......@@ -73,7 +73,7 @@ func GetHashChecksumOfByteArray(byteArray []byte) uint64 {
//GetHashChecksumOfFile Get Hash Check sum
func GetHashChecksumOfFile(filePath string) uint64 {
byteArray, err := ReadFile(filePath)
if err != nil {
if err == nil {
hash := GetHashChecksumOfByteArray(byteArray)
return hash
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment