Skip to content

Commit

Permalink
style: split long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ugjka committed Feb 11, 2024
1 parent e9007f8 commit 1b0a65c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dlna_content_features_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ func TestContentFeatures(t *testing.T) {
DLNA_ORG_FLAG_CONNECTION_STALL |
DLNA_ORG_FLAG_DLNA_V15,
}
want := "DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01700000000000000000000000000000"
want := "DLNA.ORG_PN=MP3;DLNA.ORG_OP=00;DLNA.ORG_CI=0;" +
"DLNA.ORG_FLAGS=01700000000000000000000000000000"
if f.String() != want {
t.Fatalf("got %s, wanted %s", f, want)
}
Expand Down
3 changes: 2 additions & 1 deletion lan_ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ func chooseStreamIP() (net.IP, error) {

ips := make([]net.IP, 0)
for _, addr := range addrs {
if ipnet, ok := addr.(*net.IPNet); ok && !ipnet.IP.IsLoopback() &&
if ipnet, ok := addr.(*net.IPNet); ok &&
!ipnet.IP.IsLoopback() &&
(ipnet.IP.To4() != nil || ipnet.IP.To16() != nil) {
ips = append(ips, ipnet.IP)
}
Expand Down

0 comments on commit 1b0a65c

Please sign in to comment.