fix
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
package lib
|
||||
|
||||
import (
|
||||
"encoding/json" // Added for logging
|
||||
"encoding/json"
|
||||
"os"
|
||||
// Added for path manipulation
|
||||
)
|
||||
|
||||
const cacheFileName = "cache.json" // Renamed for clarity
|
||||
@@ -57,9 +56,11 @@ func (c *Cache) IsChanged(fetcher string, value string) bool {
|
||||
if !found {
|
||||
return true
|
||||
}
|
||||
|
||||
if cachedValue != value {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user