Skip to content

Commit

Permalink
perf(session): remove useless session open
Browse files Browse the repository at this point in the history
`UseSession` isn’t used in theses controllers.
Not using it should avoid a few session locks.

Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
  • Loading branch information
Altahrim authored and backportbot[bot] committed Jun 27, 2024
1 parent ad2535f commit 5efc468
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/files/lib/Controller/ViewController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ public function showFile(?string $fileid = null): Response {
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand All @@ -167,7 +166,6 @@ public function indexView($dir = '', $view = '', $fileid = null, $fileNotFound =
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand All @@ -182,7 +180,6 @@ public function indexViewFileid($dir = '', $view = '', $fileid = null, $fileNotF
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand Down

0 comments on commit 5efc468

Please sign in to comment.