Skip to content

Commit

Permalink
Clean up the fall-back from /etc/os-release to /usr/lib/os-release
Browse files Browse the repository at this point in the history
  • Loading branch information
supervacuus committed Mar 11, 2024
1 parent 73f0704 commit 700a65a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sentry_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -348,11 +348,10 @@ sentry__get_os_context(void)
if (sentry_value_is_null(os_dist)) {
os_dist = get_linux_os_release("/usr/lib/os-release");
if (sentry_value_is_null(os_dist)) {
sentry_value_set_by_key(os, "distribution", os_dist);
return os;
}
} else {
sentry_value_set_by_key(os, "distribution", os_dist);
}
sentry_value_set_by_key(os, "distribution", os_dist);
# endif // defined(SENTRY_PLATFORM_LINUX)

return os;
Expand Down

0 comments on commit 700a65a

Please sign in to comment.