Skip to content

Commit

Permalink
update 8
Browse files Browse the repository at this point in the history
  • Loading branch information
sameeul committed Oct 27, 2023
1 parent 0033f40 commit 2d6c327
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/nyx/arrow_output_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ std::tuple<bool, std::optional<std::string>> ArrowOutputStream::write_arrow_file
if (writer_){
auto status = writer_->write(features);
if (status.ok()) {
return std::make_tuple(true, std::nullopt);
return {true, std::nullopt};
}
else {
return std::make_tuple(false, status.ToString());
return {false, status.ToString()};
}
}
return std::make_tuple(false, "Arrow Writer is not initialized.");
return {false, "Arrow Writer is not initialized."};
}
std::tuple<bool, std::optional<std::string>> ArrowOutputStream::close_arrow_file (){
if (writer_){
auto status = writer_->close();
if (status.ok()) {
return std::make_tuple(true, std::nullopt);
return {true, std::nullopt};
}
else {
return std::make_tuple(false, status.ToString());
return {false, status.ToString()};
}
}
return std::make_tuple(false, "Arrow Writer is not initialized.");
return {false, "Arrow Writer is not initialized."};
}

#else
Expand Down

0 comments on commit 2d6c327

Please sign in to comment.