Simplify some code a little bit

Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
Pablo Zmdl 2026-01-19 15:18:13 +01:00
parent 844831a899
commit fd308d4b80

View file

@ -697,10 +697,7 @@ class ConfigurationManager
} }
public function isSeccompDisabled() : bool { public function isSeccompDisabled() : bool {
if ($this->GetCollaboraSeccompDisabledState() === 'true') { return $this->GetCollaboraSeccompDisabledState() === 'true';
return true;
}
return false;
} }
/** /**
@ -795,10 +792,7 @@ class ConfigurationManager
} }
public function isDailyBackupRunning() : bool { public function isDailyBackupRunning() : bool {
if (file_exists(DataConst::GetDailyBackupBlockFile())) { return file_exists(DataConst::GetDailyBackupBlockFile());
return true;
}
return false;
} }
/** /**
@ -870,10 +864,7 @@ class ConfigurationManager
} }
public function isCollaboraSubscriptionEnabled() : bool { public function isCollaboraSubscriptionEnabled() : bool {
if (str_contains($this->collabora_additional_options, '--o:support_key=')) { return str_contains($this->collabora_additional_options, '--o:support_key=');
return true;
}
return false;
} }
/** /**