Skip to content

Commit 1f07b7a

Browse files
ing-eokingjhpark816
authored andcommitted
INTERNAL: Combine conditionals for reduction_mode setting
1 parent 67f9d85 commit 1f07b7a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

userlog_logger.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,9 +320,8 @@ EXTENSION_ERROR_CODE memcached_extensions_initialize(const char *config,
320320
}
321321
reduction_mode = false;
322322
env = getenv("UserLogReduction");
323-
if (env != NULL && strcmp(env, "on") == 0)
323+
if (env != NULL && strcmp(env, "on") == 0) {
324324
reduction_mode = true;
325-
if (reduction_mode == true) { // default is false
326325
prev_log[0] = 0;
327326
prev_len = 0;
328327
prefix_buf[0] = 0;

0 commit comments

Comments
 (0)