Skip to content

Commit 3d6c4e2

Browse files
committed
Fix indentation and scope match for 'if' condition
Since editors sometimes don't completely disable non-reachable code, like macro-protected, it's cleaner too keep parenthesis open/close outside this. Otherwise this can confuse editors scope matching.
1 parent c1e2ce7 commit 3d6c4e2

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/ProxySQL_Admin.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2318,12 +2318,15 @@ void * admin_main_loop(void *arg) {
23182318
if (resultset) {
23192319
SQLite3_result * resultset2 = NULL;
23202320

2321-
// In debug, run the code to generate metrics so that it can be tested even if the web interface plugin isn't loaded.
2322-
#ifdef DEBUG
2323-
if (true) {
2324-
#else
2325-
if (GloVars.web_interface_plugin) {
2326-
#endif
2321+
// In debug, run the code to generate metrics so that it can be tested even if
2322+
// the 'web_interface_plugin' isn't loaded.
2323+
if (
2324+
#ifdef DEBUG
2325+
true
2326+
#else
2327+
GloVars.web_interface_plugin
2328+
#endif
2329+
) {
23272330
resultset2 = MyHGM->SQL3_Connection_Pool(false);
23282331
}
23292332
GloProxyStats->MyHGM_Handler_sets(resultset, resultset2);

0 commit comments

Comments
 (0)