fix: unit test not returning error when test fails

* fix: unit test not returning error when test fails

* chore: add unit test to smoketest.yml

* fix: make linter happy
This commit is contained in:
Aveline
2025-05-19 22:51:11 +02:00
committed by GitHub
parent 3f320e50f7
commit 5ba08de566
7 changed files with 114 additions and 56 deletions

View File

@@ -29,7 +29,7 @@ func checkIfSymlinksInOrder(fc *FileChange, logger *zerolog.Logger) (FileState,
}
l := logger.With().Str("path", fc.Path).Logger()
if fc.ParamSymlinks == nil || len(fc.ParamSymlinks) == 0 {
if len(fc.ParamSymlinks) == 0 {
return FileStateUnknown, fmt.Errorf("no symlinks to check")
}