modified 统一代码风格
This commit is contained in:
@@ -40,9 +40,9 @@ func BreakPointContinue(content []byte, fileName string, contentNumber int, cont
|
||||
func CheckMd5(content []byte, chunkMd5 string) (CanUpload bool) {
|
||||
fileMd5 := MD5V(content)
|
||||
if fileMd5 == chunkMd5 {
|
||||
return true // "可以继续上传"
|
||||
return true // 可以继续上传
|
||||
} else {
|
||||
return false // "切片不完整,废弃"
|
||||
return false // 切片不完整,废弃
|
||||
}
|
||||
}
|
||||
|
||||
@@ -92,7 +92,6 @@ func MakeFile(fileName string, FileMd5 string) (error, string) {
|
||||
return err, finishDir + fileName
|
||||
}
|
||||
}
|
||||
|
||||
return nil, finishDir + fileName
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user