Skip to content

Commit cc4195a

Browse files
authored
Remove duplicated code (#799) (#835)
1 parent 668f4f5 commit cc4195a

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/data_frame_analyzer/Main.cc

+1-3
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,7 @@ int main(int argc, char** argv) {
184184
std::move(restoreSearcherSupplier));
185185

186186
if (memoryUsageEstimationOnly) {
187-
auto outStream = [&ioMgr]() {
188-
return std::make_unique<ml::core::CJsonOutputStreamWrapper>(ioMgr.outputStream());
189-
}();
187+
auto outStream = resultsStreamSupplier();
190188
ml::api::CMemoryUsageEstimationResultJsonWriter writer(*outStream);
191189
analysisSpecification->estimateMemoryUsage(writer);
192190
return EXIT_SUCCESS;

0 commit comments

Comments
 (0)