Skip to content

Commit

Permalink
Fix invalid debug assertions check
Browse files Browse the repository at this point in the history
  • Loading branch information
robbert-vdh committed May 5, 2024
1 parent ec2e6ad commit 9bb6726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/diopser/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ fn top_bar(cx: &mut Context) {
// Try to open the Diopser plugin's page when clicking on the title. If this
// fails then that's not a problem
let result = open::that(Diopser::URL);
if cfg!(debug) && result.is_err() {
if cfg!(debug_assertions) && result.is_err() {
nih_debug_assert_failure!("Failed to open web browser: {:?}", result);
}
}
Expand Down
2 changes: 1 addition & 1 deletion plugins/spectral_compressor/src/editor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ fn main_column(cx: &mut Context) {
// Try to open the plugin's page when clicking on the title. If this
// fails then that's not a problem
let result = open::that(SpectralCompressor::URL);
if cfg!(debug) && result.is_err() {
if cfg!(debug_assertions) && result.is_err() {
nih_debug_assert_failure!(
"Failed to open web browser: {:?}",
result
Expand Down

0 comments on commit 9bb6726

Please sign in to comment.