Skip to content

Commit

Permalink
Removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
markondej committed Jan 8, 2019
1 parent e96c89d commit c413422
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions wave_reader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ vector<char> *WaveReader::readData(unsigned bytesToRead, bool headerBytes, bool
(((unsigned)bytes < bytesToRead) && headerBytes && (fileDescriptor != STDIN_FILENO))) {
delete data;

if (fileDescriptor != STDIN_FILENO) {
close(fileDescriptor);
}

ostringstream oss;
oss << "Error while reading " << getFilename() << ", file is corrupted";
throw ErrorReporter(oss.str());
Expand Down

0 comments on commit c413422

Please sign in to comment.