Skip to content

Commit 40805b9

Browse files
authored
chore: clean up formatting (#298)
Signed-off-by: Chris Gianelloni <[email protected]>
1 parent fae632e commit 40805b9

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/dns/dns.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
package dns
88

99
import (
10+
"crypto/rand"
1011
"fmt"
1112
"log/slog"
12-
"crypto/rand"
1313
"math/big"
1414
"net"
1515
"os"
@@ -544,7 +544,10 @@ func createQuery(recordName string, recordType uint16) *dns.Msg {
544544

545545
func randomFallbackServer() string {
546546
cfg := config.GetConfig()
547-
n, err := rand.Int(rand.Reader, big.NewInt(int64(len(cfg.Dns.FallbackServers))))
547+
n, err := rand.Int(
548+
rand.Reader,
549+
big.NewInt(int64(len(cfg.Dns.FallbackServers))),
550+
)
548551
if err != nil {
549552
return ""
550553
}

0 commit comments

Comments
 (0)