Skip to content

Commit

Permalink
fix: regression with updating read-only config
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Bull <[email protected]>
  • Loading branch information
Dreamsorcerer authored and backportbot[bot] committed Apr 18, 2024
1 parent 146675b commit 37b517f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/private/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ public function setValue($key, $value) {
* @throws HintException
*/
protected function set($key, $value) {
$this->checkReadOnly();

if (!isset($this->cache[$key]) || $this->cache[$key] !== $value) {
// Add change
$this->cache[$key] = $value;
Expand Down Expand Up @@ -185,8 +183,6 @@ public function deleteKey($key) {
* @throws HintException
*/
protected function delete($key) {
$this->checkReadOnly();

if (isset($this->cache[$key])) {
// Delete key from cache
unset($this->cache[$key]);
Expand Down

0 comments on commit 37b517f

Please sign in to comment.