ditto, how about
```
if (it == storages_.end()) 
  return std::string();  // I think return ""; is better, do you?

if (pos != std::string::npos)
  return it->second.fullpath_ + fullPath.substr(pos);
else
  return it->second.fullpath_;
```