Skip to content

Commit ab3dda6

Browse files
committed
chore(network): fix linting error errcheck
1 parent 4a23f22 commit ab3dda6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

network.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,9 @@ func networkStateChanged() {
2424
timeSync.SetDhcpNtpAddresses(networkState.NtpAddressesString())
2525
}
2626

27-
timeSync.Sync()
27+
if err := timeSync.Sync(); err != nil {
28+
networkLogger.Error().Err(err).Msg("failed to sync time after network state change")
29+
}
2830
}
2931

3032
// always restart mDNS when the network state changes

0 commit comments

Comments
 (0)