Skip to content

Commit aae3da8

Browse files
committed
Fix inverted nil-check in cache file resolution
1 parent d860d79 commit aae3da8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/sources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ func (source *Source) updateCache(bin, sig []byte) {
124124
now := getCurrentTime()
125125
file := source.cacheFile
126126
absPath := file
127-
if resolved, err := filepath.Abs(file); err != nil {
127+
if resolved, err := filepath.Abs(file); err == nil {
128128
absPath = resolved
129129
}
130130

0 commit comments

Comments
 (0)