Skip to content

Commit

Permalink
Fix bug preventing the use of a local cache
Browse files Browse the repository at this point in the history
The last change to the logic of when a local cache could be used had
an error which accidently disabled any use of a local cache. This change
corrects the logic and a quick test shows that local caching is working
again.
  • Loading branch information
Dr15Jones committed Aug 28, 2015
1 parent 574ae69 commit 23a0e48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utilities/StorageFactory/src/StorageFactory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ StorageFactory::wrapNonLocalFile (Storage *s,
{
m_lfs.issueWarning();
}
else if (path.empty() || m_lfs.isLocalPath(path))
else if ( (not path.empty()) and m_lfs.isLocalPath(path))
{
// For now, issue no warning - otherwise, we'd always warn on local input files.
}
Expand Down

0 comments on commit 23a0e48

Please sign in to comment.