Skip to content

Commit

Permalink
telemetry - AggregatedFile - check empty pattern processing
Browse files Browse the repository at this point in the history
  • Loading branch information
SiskaPavel committed Sep 30, 2024
1 parent fbfed09 commit 6e5369b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/telemetry/aggFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ Content AggregatedFile::read()
}

const auto files = getFilesMatchingPattern(m_filesRegexPattern, patternRootDir);
if (files.empty()) {
return content;
}

std::vector<Content> fileContents;
fileContents.reserve(files.size());
Expand Down

0 comments on commit 6e5369b

Please sign in to comment.