From cd4313ea06b87e83f8440901bcf3207ae7a13e82 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Sat, 19 Sep 2026 21:16:29 +0200 Subject: [PATCH] style: gofmt storage-policy files Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- inventory/types/types.go | 6 +++--- pkg/filemanager/fs/dbfs/pick_policy_test.go | 2 +- service/explorer/policy.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/inventory/types/types.go b/inventory/types/types.go index 74eb6f59..72add853 100644 --- a/inventory/types/types.go +++ b/inventory/types/types.go @@ -58,9 +58,9 @@ type ( Aria2TaskLimit int `json:"aria2_task_limit,omitempty"` // Aria2MaxFileSize caps the total byte size of a single download task. Aria2MaxFileSize int64 `json:"aria2_max_file_size,omitempty"` - MaxWalkedFiles int `json:"max_walked_files,omitempty"` - TrashRetention int `json:"trash_retention,omitempty"` - RedirectedSource bool `json:"redirected_source,omitempty"` + MaxWalkedFiles int `json:"max_walked_files,omitempty"` + TrashRetention int `json:"trash_retention,omitempty"` + RedirectedSource bool `json:"redirected_source,omitempty"` // LoginIPWhitelist restricts sign-in to the given IPs/CIDR ranges. // Empty means no restriction. LoginIPWhitelist []string `json:"login_ip_whitelist,omitempty"` diff --git a/pkg/filemanager/fs/dbfs/pick_policy_test.go b/pkg/filemanager/fs/dbfs/pick_policy_test.go index 88c7f715..f663d30c 100644 --- a/pkg/filemanager/fs/dbfs/pick_policy_test.go +++ b/pkg/filemanager/fs/dbfs/pick_policy_test.go @@ -8,6 +8,7 @@ import ( "github.com/cloudreve/Cloudreve/v4/ent/enttest" entfile "github.com/cloudreve/Cloudreve/v4/ent/file" entmetadata "github.com/cloudreve/Cloudreve/v4/ent/metadata" + "github.com/cloudreve/Cloudreve/v4/ent/schema" "github.com/cloudreve/Cloudreve/v4/ent/storagepolicy" "github.com/cloudreve/Cloudreve/v4/inventory" "github.com/cloudreve/Cloudreve/v4/inventory/types" @@ -15,7 +16,6 @@ import ( "github.com/cloudreve/Cloudreve/v4/pkg/conf" "github.com/cloudreve/Cloudreve/v4/pkg/hashid" "github.com/cloudreve/Cloudreve/v4/pkg/logging" - "github.com/cloudreve/Cloudreve/v4/ent/schema" "github.com/stretchr/testify/require" ) diff --git a/service/explorer/policy.go b/service/explorer/policy.go index 1d2cd3eb..7e187830 100644 --- a/service/explorer/policy.go +++ b/service/explorer/policy.go @@ -27,7 +27,7 @@ type StoragePolicyBrief struct { type ( // AllowedPolicyService lists the storage policies the caller's group may use. - AllowedPolicyService struct{} + AllowedPolicyService struct{} AllowedPolicyParamCtx struct{} // PreferredPolicyService sets or clears a directory's preferred storage