Skip to content

Commit

Permalink
Fix lint error
Browse files Browse the repository at this point in the history
Signed-off-by: Wendell Hom <[email protected]>
  • Loading branch information
whom3 committed Jan 29, 2025
1 parent 784142c commit bbeaa9c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions applications/stereo_vision/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,10 @@ int main(int argc, char** argv) {
auto input_path = std::getenv("HOLOSCAN_INPUT_PATH");
if (input_path != nullptr && input_path[0] != '\0') {
data_directory = std::string(input_path) + "/stereo_vision";
} else if (std::filesystem::is_directory(std::filesystem::current_path() / "data/stereo_vision")) {
data_directory = std::string((std::filesystem::current_path() / "data/stereo_vision").c_str());
} else if (std::filesystem::is_directory(
std::filesystem::current_path() / "data/stereo_vision")) {
data_directory = std::string(
(std::filesystem::current_path() / "data/stereo_vision").c_str());
} else {
HOLOSCAN_LOG_ERROR(
"Input data not provided. Use --data or set HOLOSCAN_INPUT_PATH environment variable.");
Expand Down

0 comments on commit bbeaa9c

Please sign in to comment.