mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
fix(QF1011): Omit redundant type from variable declaration
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
committed by
Sebastiaan van Stijn
parent
4f9214c156
commit
a88c49f38e
@@ -266,7 +266,7 @@ func (ldm *LayerDownloadManager) makeDownloadFunc(descriptor DownloadDescriptor,
|
||||
downloadReader io.ReadCloser
|
||||
size int64
|
||||
err error
|
||||
attempt int = 1
|
||||
attempt = 1
|
||||
)
|
||||
|
||||
defer descriptor.Close()
|
||||
|
||||
@@ -164,8 +164,8 @@ func findNextRangeStart(rangeList []user.SubID) (int, error) {
|
||||
}
|
||||
|
||||
func wouldOverlap(arange user.SubID, ID int64) bool {
|
||||
var low int64 = ID
|
||||
var high int64 = ID + defaultRangeLen
|
||||
low := ID
|
||||
high := low + defaultRangeLen
|
||||
if (low >= arange.SubID && low <= arange.SubID+arange.Count) ||
|
||||
(high <= arange.SubID+arange.Count && high >= arange.SubID) {
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user