mirror of
https://github.com/datarhei/core.git
synced 2025-10-18 22:04:38 +08:00
Fix linter warnings
This commit is contained in:
@@ -88,11 +88,7 @@ func NewWithConfig(config Config) echo.MiddlewareFunc {
|
||||
|
||||
// Sort the mounts from longest to shortest
|
||||
sort.Slice(mw.mounts, func(i, j int) bool {
|
||||
if len(mw.mounts[i]) > len(mw.mounts[j]) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
return len(mw.mounts[i]) > len(mw.mounts[j])
|
||||
})
|
||||
|
||||
mw.logger.Debug().WithField("mounts", mw.mounts).Log("")
|
||||
|
Reference in New Issue
Block a user