From 786d50bb43b217ad273eeb1219ca45ae96b14ee2 Mon Sep 17 00:00:00 2001 From: Itxaka Date: Mon, 21 Oct 2024 09:56:00 +0200 Subject: [PATCH] Update timesyncd.go (#184) --- pkg/plugins/timesyncd.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkg/plugins/timesyncd.go b/pkg/plugins/timesyncd.go index 31a68e5f..70647821 100644 --- a/pkg/plugins/timesyncd.go +++ b/pkg/plugins/timesyncd.go @@ -40,11 +40,7 @@ func Timesyncd(l logger.Interface, s schema.Stage, fs vfs.FS, console Console) e } for k, v := range s.TimeSyncd { - if v == "" { - cfg.Section("Time").Key(k).SetValue("\"\"") - } else { - cfg.Section("Time").Key(k).SetValue(v) - } + cfg.Section("Time").Key(k).SetValue(v) } cfg.SaveTo(path)