Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -96,6 +96,7 @@ func (s OAuth2Scopes) OrDefault(defaultScopes OAuth2Scopes) OAuth2Scopes {
if len(s) == 0 {
return defaultScopes
}
return s
}
@@ -107,6 +108,7 @@ func (s *OAuth2Scopes) UnmarshalText(text []byte) error {
}
fields := strings.Fields(str)
scopes := make(OAuth2Scopes, len(fields))
for i, f := range fields {
if err := scopes[i].UnmarshalText([]byte(f)); err != nil {
@@ -115,5 +117,6 @@ func (s *OAuth2Scopes) UnmarshalText(text []byte) error {
}
*s = scopes
return nil
}