X-Git-Url: https://ruderich.org/simon/gitweb/?p=safcm%2Fsafcm.git;a=blobdiff_plain;f=cmd%2Fsafcm-remote%2Fsync%2Ftriggers.go;h=d201835e7e7271b9729da033a409c53b004edce9;hp=34aae7df45b808bf878288caa293fef898970521;hb=2d8cd51379f293fe2047c1347b52f8dc7ac3f78d;hpb=bacf1f2d844cd8b917ad0d38e0d3ba01d74dcae8 diff --git a/cmd/safcm-remote/sync/triggers.go b/cmd/safcm-remote/sync/triggers.go index 34aae7d..d201835 100644 --- a/cmd/safcm-remote/sync/triggers.go +++ b/cmd/safcm-remote/sync/triggers.go @@ -51,9 +51,7 @@ func (s *Sync) queueTriggers(file *safcm.File) { // "/" or ".", then the parents and finally path itself). func triggerPaths(path string) []string { sep := string(filepath.Separator) - if path == sep { - return []string{path} - } else if path == "." { + if path == sep || path == "." { return []string{path} } parts := strings.Split(path, sep)