Skip to content

Commit b6e870b

Browse files
committed
refactor: remove unneeded if
1 parent df5fec4 commit b6e870b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

system/Session/Handlers/MemcachedHandler.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,7 @@ public function __construct(SessionConfig $config, string $ipAddress)
7070
$this->keyPrefix .= $this->ipAddress . ':';
7171
}
7272

73-
if ($this->keyPrefix !== '' && $this->keyPrefix !== '0') {
74-
ini_set('memcached.sess_prefix', $this->keyPrefix);
75-
}
73+
ini_set('memcached.sess_prefix', $this->keyPrefix);
7674
}
7775

7876
/**

0 commit comments

Comments
 (0)