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 <git@sambull.org>
  • Loading branch information
Dreamsorcerer authored and skjnldsv committed Jun 7, 2024
1 parent 8ed2df8 commit ccfdc97
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 ccfdc97

Please sign in to comment.