fix: accurate source

This commit is contained in:
崔竞宁
2022-12-08 13:30:32 +08:00
parent d09399d928
commit 9fde45f6fd

1
opt.go
View File

@@ -116,7 +116,6 @@ func Source(paths ...string) Option {
func AccurateSource(base string, paths ...[]string) Option {
return func(o *option) *option {
base = path.Clean(base)
for _, path := range paths {
o.src = append(o.src, &source{base: base, path: path})
}