Skip to content

Commit

Permalink
Implement review
Browse files Browse the repository at this point in the history
  • Loading branch information
simcod committed Sep 9, 2024
1 parent 2316280 commit a2faedc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cmd/network/ntpdate.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ func getTime(log *slog.Logger, servers []string) (t time.Time, err error) {

// NtpDate set the system time to the time coming from a ntp source
func NtpDate(log *slog.Logger, ntpServers []string) {
var t time.Time
var err error
var (
t time.Time
err error
)

if ntpServers != nil {
t, err = getTime(log, ntpServers)
Expand Down

0 comments on commit a2faedc

Please sign in to comment.