Skip to content

Commit 7b9b0bb

Browse files
committed
fix: use const name from config lexicon directly
Signed-off-by: Anupam Kumar <kyteinsky@gmail.com>
1 parent d19293e commit 7b9b0bb

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

lib/private/Repair/RemoveBrokenProperties.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
namespace OC\Repair;
1111

12+
use OC\Core\AppInfo\ConfigLexicon;
1213
use OCP\DB\QueryBuilder\IQueryBuilder;
1314
use OCP\IAppConfig;
1415
use OCP\IDBConnection;
@@ -17,8 +18,6 @@
1718
use Override;
1819

1920
class RemoveBrokenProperties implements IRepairStep {
20-
public const GUARD_CONFIG_KEY = 'dav_repair_removed_broken_properties';
21-
2221
public function __construct(
2322
private readonly IDBConnection $db,
2423
private readonly IAppConfig $appConfig,
@@ -32,7 +31,7 @@ public function getName(): string {
3231

3332
#[Override]
3433
public function run(IOutput $output): void {
35-
if ($this->appConfig->getValueBool('core', self::GUARD_CONFIG_KEY, lazy: true)) {
34+
if ($this->appConfig->getValueBool('core', ConfigLexicon::DAV_REPAIR_REMOVED_BROKEN_PROPERTIES, lazy: true)) {
3635
return;
3736
}
3837

@@ -65,7 +64,7 @@ public function run(IOutput $output): void {
6564
}
6665
$total = count($brokenIds);
6766

68-
$this->appConfig->setValueBool('core', self::GUARD_CONFIG_KEY, true, lazy: true);
67+
$this->appConfig->setValueBool('core', ConfigLexicon::DAV_REPAIR_REMOVED_BROKEN_PROPERTIES, true, lazy: true);
6968
$output->info("$total broken object properties removed");
7069
}
7170
}

0 commit comments

Comments
 (0)