summaryrefslogtreecommitdiff
path: root/methods/http.cc
diff options
context:
space:
mode:
Diffstat (limited to 'methods/http.cc')
-rw-r--r--methods/http.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/methods/http.cc b/methods/http.cc
index 16c6d19e1..e1bb2e130 100644
--- a/methods/http.cc
+++ b/methods/http.cc
@@ -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() /*{{{*/