]> ruderich.org/simon Gitweb - safcm/safcm.git/commitdiff
changes: remove unused code
authorSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 10:06:14 +0000 (12:06 +0200)
committerSimon Ruderich <simon@ruderich.org>
Mon, 5 Apr 2021 10:06:14 +0000 (12:06 +0200)
cmd/safcm/sync_changes.go

index 46349116a602d1fb7e389b7b089116aabbbbd418..7ef0541fcb4809b17669c2acda6a1e0f8c357bc0 100644 (file)
@@ -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]