comparison icf/icf.go @ 14:a51dfcb0faeb default tip

forgot to remove bestPatPath variable that's not used anymore
author Atarwn Gard <a@qwa.su>
date Mon, 23 Mar 2026 13:48:32 +0500
parents 9460f83a5664
children
comparison
equal deleted inserted replaced
13:9460f83a5664 14:a51dfcb0faeb
188 return nil, nil, "" 188 return nil, nil, ""
189 } 189 }
190 190
191 // subPath is the filesystem path relative to rootDir. 191 // subPath is the filesystem path relative to rootDir.
192 // rem is the unmatched suffix after the path pattern 192 // rem is the unmatched suffix after the path pattern
193 _, bestPatPath, bestHasPath := strings.Cut(best.block.ID, "/") 193 _, _, bestHasPath := strings.Cut(best.block.ID, "/")
194 subPath := best.rem 194 subPath := best.rem
195 if bestHasPath && subPath == "" { 195 if bestHasPath && subPath == "" {
196 base := path.Base(inPath) 196 base := path.Base(inPath)
197 if strings.Contains(base, ".") { 197 if strings.Contains(base, ".") {
198 subPath = "/" + inPath 198 subPath = "/" + inPath