Skip to content

Commit

Permalink
Re #6543. Remove redundant line.
Browse files Browse the repository at this point in the history
hFile can never be NULL at that point. If the file cannot be opened
the constructor will throw and it will be caught in the algorithm
base class.
  • Loading branch information
RussellTaylor committed Feb 27, 2013
1 parent 7fee22a commit 34fdba3
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions Code/Mantid/Framework/DataHandling/src/LoadDetectorInfo.cpp
Expand Up @@ -806,8 +806,6 @@ void LoadDetectorInfo::sometimesLogSuccess(const detectorInfo &params, bool &nee
void LoadDetectorInfo::readNXS(const std::string& fName)
{
auto hFile = new ::NeXus::File(fName,NXACC_READ);
if(!hFile)
throw std::runtime_error(" Can not open file "+fName+" as nexus file");

std::map<std::string, std::string> entries;
hFile->getEntries(entries);
Expand Down

0 comments on commit 34fdba3

Please sign in to comment.