summaryrefslogtreecommitdiffstats
path: root/modules/storage
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-04-09 09:40:34 +0200
committerGitHub <noreply@github.com>2021-04-09 09:40:34 +0200
commit9c4601bdf8369ed72944085e3952111cf4aeea11 (patch)
tree2dcadaabed6dbe14ddba2d2513b736ff6b7f089f /modules/storage
parent0991f9aa427ab923544c35d73232fa53c9db9120 (diff)
downloadgitea-9c4601bdf8369ed72944085e3952111cf4aeea11.tar.gz
gitea-9c4601bdf8369ed72944085e3952111cf4aeea11.zip
Code Formats, Nits & Unused Func/Var deletions (#15286)
* _ to unused func options * rm useless brakets * rm trifial non used models functions * rm dead code * rm dead global vars * fix routers/api/v1/repo/issue.go * dont overload import module
Diffstat (limited to 'modules/storage')
-rw-r--r--modules/storage/helper.go2
-rw-r--r--modules/storage/storage.go2
2 files changed, 1 insertions, 3 deletions
diff --git a/modules/storage/helper.go b/modules/storage/helper.go
index 46ab82aed6..4d8ba8e6d9 100644
--- a/modules/storage/helper.go
+++ b/modules/storage/helper.go
@@ -50,7 +50,7 @@ func toConfig(exemplar, cfg interface{}) (interface{}, error) {
var err error
configBytes, err = json.Marshal(cfg)
- ok = (err == nil)
+ ok = err == nil
}
if !ok {
// no ... we've tried hard enough at this point - throw an error!
diff --git a/modules/storage/storage.go b/modules/storage/storage.go
index 65f8978e5a..984f154db4 100644
--- a/modules/storage/storage.go
+++ b/modules/storage/storage.go
@@ -19,8 +19,6 @@ import (
var (
// ErrURLNotSupported represents url is not supported
ErrURLNotSupported = errors.New("url method not supported")
- // ErrIterateObjectsNotSupported represents IterateObjects not supported
- ErrIterateObjectsNotSupported = errors.New("iterateObjects method not supported")
)
// ErrInvalidConfiguration is called when there is invalid configuration for a storage