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 3440960
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions lib/Tools/Db/ExtendedQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
use OCP\DB\QueryBuilder\ICompositeExpression;
use OCP\DB\QueryBuilder\IQueryBuilder;
use OCP\IDBConnection;
use OCP\ILogger;
use Psr\Log\LoggerInterface;

class ExtendedQueryBuilder extends QueryBuilder {
Expand All @@ -59,19 +58,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 3440960

Please sign in to comment.