Skip to content

Commit

Permalink
chore: Remove old version check
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr committed Apr 2, 2024
1 parent aab1a50 commit 3c5fa7d
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions lib/Tools/Db/ExtendedQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,11 @@ class ExtendedQueryBuilder extends QueryBuilder {
* ExtendedQueryBuilder constructor.
*/
public function __construct() {
if (\OCP\Util::getVersion()[0] >= 24) {
parent::__construct(
OC::$server->get(IDBConnection::class),
OC::$server->get(SystemConfig::class),
OC::$server->get(LoggerInterface::class)
);
} else {
parent::__construct(
OC::$server->get(IDBConnection::class),
OC::$server->get(SystemConfig::class),
OC::$server->get(ILogger::class)
);
}
parent::__construct(
OC::$server->get(IDBConnection::class),
OC::$server->get(SystemConfig::class),
OC::$server->get(LoggerInterface::class)
);
}


Expand Down

0 comments on commit 3c5fa7d

Please sign in to comment.