From 462b2f96d3ea302b4638abf55b8fd236f81dd1e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=80=97=E5=AD=90?= Date: Mon, 30 Oct 2023 02:54:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=90=8C=E6=AD=A5=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/http/controllers/plugins/s3fs/s3fs_controller.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/http/controllers/plugins/s3fs/s3fs_controller.go b/app/http/controllers/plugins/s3fs/s3fs_controller.go index bcf704a4ae..ca9fc9b4d7 100644 --- a/app/http/controllers/plugins/s3fs/s3fs_controller.go +++ b/app/http/controllers/plugins/s3fs/s3fs_controller.go @@ -58,6 +58,9 @@ func (c *S3fsController) List(ctx http.Context) http.Response { endIndex = len(s3fsList) } pagedS3fsList := s3fsList[startIndex:endIndex] + if pagedS3fsList == nil { + pagedS3fsList = []s3fs{} + } return controllers.Success(ctx, http.Json{ "total": len(s3fsList),