Skip to content

Commit

Permalink
Removed redundant error checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
ssun30 authored and ischoegl committed Dec 10, 2022
1 parent 7d86e26 commit 6042429
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/clib/ct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,6 @@ extern "C" {

int thermo_setDensity(int n, double rho)
{
if (rho < 0.0) {
return -1;
}
try {
ThermoCabinet::item(n).setDensity(rho);
} catch (...) {
Expand All @@ -122,9 +119,6 @@ extern "C" {

int thermo_setMolarDensity(int n, double ndens)
{
if (ndens < 0.0) {
return -1;
}
try {
ThermoCabinet::item(n).setMolarDensity(ndens);
} catch (...) {
Expand Down

0 comments on commit 6042429

Please sign in to comment.