Removed unnecessary qualifier

This commit is contained in:
Veloman Yunkan 2020-05-26 01:41:37 +04:00
parent 931e95f391
commit ff23b28e7c
1 changed files with 2 additions and 2 deletions

View File

@ -48,13 +48,13 @@ ByteRange ByteRange::parse(std::string rangeStr)
if (iss >> start) { if (iss >> start) {
if ( start < 0 ) { if ( start < 0 ) {
if ( iss.eof() ) if ( iss.eof() )
byteRange = ByteRange(ByteRange::PARSED, start, end); byteRange = ByteRange(PARSED, start, end);
} else { } else {
char c; char c;
if (iss >> c && c=='-') { if (iss >> c && c=='-') {
iss >> end; // if this fails, end is not modified, which is OK iss >> end; // if this fails, end is not modified, which is OK
if (iss.eof() && start <= end) if (iss.eof() && start <= end)
byteRange = ByteRange(ByteRange::PARSED, start, end); byteRange = ByteRange(PARSED, start, end);
} }
} }
} }