From: Simon Ruderich Date: Mon, 5 Apr 2021 10:06:14 +0000 (+0200) Subject: changes: remove unused code X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=267127245a6b9b0ad6475b9377f633c1aaa60f35;p=safcm%2Fsafcm.git changes: remove unused code --- diff --git a/cmd/safcm/sync_changes.go b/cmd/safcm/sync_changes.go index 4634911..7ef0541 100644 --- a/cmd/safcm/sync_changes.go +++ b/cmd/safcm/sync_changes.go @@ -226,10 +226,6 @@ func (s *Sync) formatDiff(diff string) string { } func indentBlock(x string, sep string) string { - if x == "" { - return "" - } - lines := strings.Split(x, "\n") if lines[len(lines)-1] == "" { lines = lines[:len(lines)-1]