]> git.saurik.com Git - apt.git/blobdiff - methods/http.cc
StartPos is always positive for http/https
[apt.git] / methods / http.cc
index 16c6d19e131391bc94acb83e9011b9eedf281fb8..e1bb2e13061e45b937420bed6f5eb9d8ee89eba2 100644 (file)
@@ -484,13 +484,8 @@ bool HttpServerState::InitHashes(FileFd &File)                             /*{{{*/
    In.Hash = new Hashes;
 
    // Set the expected size and read file for the hashes
-   if (StartPos >= 0)
-   {
-      File.Truncate(StartPos);
-
-      return In.Hash->AddFD(File, StartPos);
-   }
-   return true;
+   File.Truncate(StartPos);
+   return In.Hash->AddFD(File, StartPos);
 }
                                                                        /*}}}*/
 Hashes * HttpServerState::GetHashes()                                  /*{{{*/