| 11 | } |
| 12 | |
| 13 | StoredArtifact * ArtifactStore::find(const std::string & key) { |
| 14 | const auto it = artifacts_.find(key); |
| 15 | if (it == artifacts_.end()) { |
| 16 | return nullptr; |
| 17 | } |
| 18 | return &it->second; |
| 19 | } |
| 20 | |
| 21 | const StoredArtifact * ArtifactStore::find(const std::string & key) const { |
| 22 | const auto it = artifacts_.find(key); |
no test coverage detected