Fix linter warnings

This commit is contained in:
Ingo Oppermann
2023-02-17 10:36:56 +01:00
parent ad4f392bd0
commit 2df83c8032
3 changed files with 8 additions and 6 deletions

View File

@@ -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("")