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 committed Jun 24, 2024
1 parent 4680bc4 commit 71dffd9
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 @@ -123,7 +123,6 @@ public function showFile(?string $fileid = null): Response {
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand All @@ -138,7 +137,6 @@ public function indexView($dir = '', $view = '', $fileid = null, $fileNotFound =
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand All @@ -153,7 +151,6 @@ public function indexViewFileid($dir = '', $view = '', $fileid = null, $fileNotF
/**
* @NoCSRFRequired
* @NoAdminRequired
* @UseSession
*
* @param string $dir
* @param string $view
Expand Down

0 comments on commit 71dffd9

Please sign in to comment.