Skip to content

Commit

Permalink
join conditions
Browse files Browse the repository at this point in the history
I still struggle with this choice

putting it into two separate expressions, makes debugging easier
  • Loading branch information
ferkulat committed Sep 4, 2019
1 parent 7f91ff1 commit 3402534
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions csv2xlslib/parseCsvFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@ namespace csv2xls
auto writeIntoFile (OutputFileName output_file_name, NumGen num_gen)
{
return [=](std::optional<OutputDoc> output_doc){
if (!output_doc)
return WriteStatus::Empty;
if(output_doc->isEmpty())
if (!output_doc || output_doc->isEmpty())
return WriteStatus::Empty;

auto const result = output_doc->writeInto(output_file_name, num_gen());
Expand Down

0 comments on commit 3402534

Please sign in to comment.