diff options
| author | Fuwn <[email protected]> | 2025-06-22 12:46:15 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2025-06-22 12:46:15 +0000 |
| commit | 092f846d13892a6c9accfbb61daba79acd635b25 (patch) | |
| tree | cc89007d4cf3635134d66afb6c0d5b8fdc3c9cb8 /internal | |
| parent | chore(flake): Bump Go version (diff) | |
| download | yae-092f846d13892a6c9accfbb61daba79acd635b25.tar.xz yae-092f846d13892a6c9accfbb61daba79acd635b25.zip | |
fix(source): Remove redundant rehash condition
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/yae/source.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/yae/source.go b/internal/yae/source.go index d18fcce..6b29732 100644 --- a/internal/yae/source.go +++ b/internal/yae/source.go @@ -85,7 +85,7 @@ func (source *Source) Update(sources *Environment, name string, force bool, forc return updated, err } - if sha256 != source.SHA256 || sriHash != source.Hash || force || source.Force { + if sha256 != source.SHA256 || sriHash != source.Hash || force { log.Infof("rehashed %s: %s -> %s", name, source.SHA256, sha256) source.SHA256 = sha256 |