From 2857052a38c9ad2c5946f6101bf7d37d63235df8 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Sat, 19 Aug 2023 16:50:04 +0200 Subject: fix: Fix various linting error --- pkg/view/album.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'pkg/view/album.go') diff --git a/pkg/view/album.go b/pkg/view/album.go index 9e70b4b..b19e381 100644 --- a/pkg/view/album.go +++ b/pkg/view/album.go @@ -30,7 +30,7 @@ func NewAlbumView( func (self *AlbumView) Index(w http.ResponseWriter, r *http.Request) error { p := getPagination(r) - token := ext.GetTokenFromCtx(w, r) + token := ext.GetTokenFromCtx(r) // TODO: optmize call, GetPathFromUserID may no be necessary userPath, err := self.userRepository.GetPathFromUserID(r.Context(), token.UserID) @@ -67,7 +67,6 @@ func (self *AlbumView) Index(w http.ResponseWriter, r *http.Request) error { if err != nil { return err } - } medias, err := self.mediaRepository.List(r.Context(), p) -- cgit v1.2.3