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:
Matthieu MOREL
2025-04-27 09:47:24 +02:00
committed by Sebastiaan van Stijn
parent 4f9214c156
commit a88c49f38e
2 changed files with 3 additions and 3 deletions

View File

@@ -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()

View File

@@ -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