summaryrefslogtreecommitdiff
path: root/cache/cache.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/cache.go')
-rw-r--r--cache/cache.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/cache/cache.go b/cache/cache.go
index 9af25a5..b4cd989 100644
--- a/cache/cache.go
+++ b/cache/cache.go
@@ -9,6 +9,7 @@ import (
"io/fs"
"os"
"path"
+ "slices"
"strings"
)
@@ -138,6 +139,9 @@ func Insert(in *model.State) error {
}
insert := New(in)
result := loaded.Merge(insert)
+ if slices.Equal(loaded.Entries, result.Entries) {
+ return nil
+ }
return SaveFile(Path, result)
}