Skip to content

Commit ef0cd4b

Browse files
authored
perf: range over SplitSeq (#407)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent b19bfb8 commit ef0cd4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/state/state.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,8 +259,8 @@ func (s *State) UpdateDomain(
259259
if err != nil {
260260
return err
261261
}
262-
domainRecordsSplit := strings.Split(string(domainRecordsVal), ",")
263-
for _, tmpRecordKey := range domainRecordsSplit {
262+
domainRecordsSplit := strings.SplitSeq(string(domainRecordsVal), ",")
263+
for tmpRecordKey := range domainRecordsSplit {
264264
if tmpRecordKey == "" {
265265
continue
266266
}

0 commit comments

Comments
 (0)