Skip to content

Commit

Permalink
Remove unnecessary conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
akhil1508 committed May 10, 2024
1 parent df726e5 commit 2a8292f
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,14 +358,9 @@ public function expire($expireDays = 365) {
$excludedUsers = $this->config->getSystemValue('activity_expire_exclude_users', []);
if (!empty($excludedUsers)) {
foreach ($excludedUsers as $user) {
$condition1 = [
'user' => [$user, '!=']
];
$conditions[] = [
'affecteduser' => [$user, '!=']
];
$conditions[] = $condition1;
$conditions[] = $condition2;
}
}

Expand Down

0 comments on commit 2a8292f

Please sign in to comment.