From 24d436cb600a725ba162a5387552a996a6fc486f Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 11 Jan 2021 12:57:03 +0100 Subject: Remove unneeded casts that were found by Psalm In preparation of the update of Psalm from 4.2.1 to 4.3.1+ (see https://github.com/nextcloud/server/pull/24521) Signed-off-by: Morris Jobke --- apps/files/lib/Controller/ApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files/lib/Controller/ApiController.php') diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index a852be5dad5..206ddbd6ed6 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -321,7 +321,7 @@ class ApiController extends Controller { foreach ($navItems as $item) { // check if data is valid if (($show === 0 || $show === 1) && isset($item['expandedState']) && $key === $item['expandedState']) { - $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, (int)$show); + $this->config->setUserValue($this->userSession->getUser()->getUID(), 'files', $key, $show); return new Response(); } } -- cgit v1.2.3