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

@@ -282,6 +282,7 @@ func (ct CountryCode) String() string {
func (ct *CountryCode) Scan(value any) error {
var s string
switch v := value.(type) {
case string:
s = v
@@ -791,6 +792,7 @@ func (ct *CountryCode) Scan(value any) error {
default:
return fmt.Errorf("invalid CountryCode value: %q", s)
}
return nil
}
@@ -836,10 +838,12 @@ func (s *CountryCodes) scanFromString(str string) error {
if err := ct.Scan(part); err != nil {
return fmt.Errorf("invalid country code in array: %s", part)
}
result[i] = ct
}
*s = result
return nil
}