Skip to content

Commit

Permalink
Per #2924, fix return value for is_keeper_obs()
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnHalleyGotway committed Jul 15, 2024
1 parent d2f6800 commit 6ddcaac
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/libcode/vx_statistics/pair_base.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1531,8 +1531,7 @@ bool VxPairBase::is_keeper_var(
const char *pnt_obs_str, const char *var_name, int grib_code) {
bool keep = true;

// Check whether the GRIB code for the observation matches
// the specified code
// Check for matching variable name or GRIB code
if((var_name != 0) && (strlen(var_name) > 0)) {

if(var_name != oinfo_ptr->name()) {
Expand Down Expand Up @@ -1639,7 +1638,7 @@ bool VxPairBase::is_keeper_obs(
keep = false;
}

return false;
return keep;
}

////////////////////////////////////////////////////////////////////////
Expand Down

0 comments on commit 6ddcaac

Please sign in to comment.