Skip to content
Snippets Groups Projects
Commit 33eefeb7 authored by Angie Byron's avatar Angie Byron
Browse files

#452416 by bjaspan: Reformat status reporting code slightly to allow breakpoints in debuggers.

parent 9c79816c
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -191,7 +191,14 @@ private function assert($status, $message = '', $group = 'Other', array $caller
// Return to testing prefix.
$db_prefix = $current_db_prefix;
return $status == 'pass' ? TRUE : FALSE;
// We do not use a ternary operator here to allow a breakpoint on
// test failure.
if ($status == 'pass') {
return TRUE;
}
else {
return FALSE;
}
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment