file: remove useless assignment

This code assigned the variable the same value it already had.

Spotted by CodeSonar

Closes #13425
This commit is contained in:
Daniel Stenberg 2024-04-19 14:09:54 +02:00
parent d54b0adbad
commit 51a3b9f8b3
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -455,12 +455,9 @@ static CURLcode file_do(struct Curl_easy *data, bool *done)
fstated = TRUE;
}
if(fstated && !data->state.range && data->set.timecondition) {
if(!Curl_meets_timecondition(data, data->info.filetime)) {
*done = TRUE;
if(fstated && !data->state.range && data->set.timecondition &&
!Curl_meets_timecondition(data, data->info.filetime))
return CURLE_OK;
}
}
if(fstated) {
time_t filetime;