Skip to content

Commit

Permalink
Tiny cleanup - make host_startup_info return void
Browse files Browse the repository at this point in the history
The original return value was always 0 and never actually checked.
  • Loading branch information
vitek-karas committed Jan 13, 2020
1 parent 86fa253 commit 2c5b900
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/installer/corehost/cli/host_startup_info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ bool get_path_from_argv(pal::string_t *path)
return false;
}

int host_startup_info_t::parse(
void host_startup_info_t::parse(
int argc,
const pal::char_t* argv[])
{
Expand All @@ -49,7 +49,6 @@ int host_startup_info_t::parse(
trace::info(_X("Host path: [%s]"), host_path.c_str());
trace::info(_X("Dotnet path: [%s]"), dotnet_root.c_str());
trace::info(_X("App path: [%s]"), app_path.c_str());
return 0;
}

bool host_startup_info_t::is_valid(host_mode_t mode) const
Expand Down
2 changes: 1 addition & 1 deletion src/installer/corehost/cli/host_startup_info.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ struct host_startup_info_t
const pal::char_t* dotnet_root_value,
const pal::char_t* app_path_value);

int parse(
void parse(
int argc,
const pal::char_t* argv[]);

Expand Down

0 comments on commit 2c5b900

Please sign in to comment.