chore: cleanup some code (#1069)

* chore

* modernize loop

* ddns: simpify Provider struct
This commit is contained in:
UUBulb
2025-04-26 18:28:21 +08:00
committed by GitHub
parent 65f728e5b1
commit 4871211f93
8 changed files with 12 additions and 38 deletions

View File

@@ -116,7 +116,7 @@ func searchByIDPri[S ~[]E, E CommonInterface](seq iter.Seq[string], x S) S {
var class E
split, ok := any(class).(splitter[S, E])
if !ok {
return nil
return x
}
plist, list2 := split.SplitList(x)

View File

@@ -35,7 +35,7 @@ type DDNSProfile struct {
DomainsRaw string `json:"-"`
}
func (d DDNSProfile) TableName() string {
func (d *DDNSProfile) TableName() string {
return "ddns"
}