Skip to content

Commit

Permalink
replace throw EmptyFeatureError with return -1 for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
anilbey committed Dec 14, 2023
1 parent 4e6514b commit d1101d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion efel/cppcore/LibV5.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2204,7 +2204,7 @@ int LibV5::AP_width_between_threshold(mapStr2intVec& IntFeatureData,
doubleFeatures.at("Threshold").front(),
intFeatures.at("min_between_peaks_indices"), ap_width_threshold);
if (retval == 0)
throw EmptyFeatureError("AP_width_between_threshold is empty");
return -1;
else if (retval > 0) {
setVec(DoubleFeatureData, StringData, "AP_width_between_threshold",
ap_width_threshold);
Expand Down

0 comments on commit d1101d9

Please sign in to comment.