@@ -2,8 +2,7 @@ package fsutils
2
2
3
3
import "path/filepath"
4
4
5
- // Files combines different operations related to handling file paths and
6
- // content.
5
+ // Files combines different operations related to handling file paths and content.
7
6
type Files struct {
8
7
* LineCache
9
8
pathPrefix string
@@ -16,18 +15,16 @@ func NewFiles(lc *LineCache, pathPrefix string) *Files {
16
15
}
17
16
}
18
17
19
- // WithPathPrefix takes a path that is relative to the current directory (as
20
- // used in in issues) and adds the configured path prefix, if there is one. The
21
- // resulting path then can be shown to the user or compared against paths
22
- // specified in the configuration.
18
+ // WithPathPrefix takes a path that is relative to the current directory (as used in issues)
19
+ // and adds the configured path prefix, if there is one.
20
+ // The resulting path then can be shown to the user or compared against paths specified in the configuration.
23
21
func (f * Files ) WithPathPrefix (relativePath string ) string {
24
22
return WithPathPrefix (f .pathPrefix , relativePath )
25
23
}
26
24
27
- // WithPathPrefix takes a path that is relative to the current directory (as
28
- // used in in issues) and adds the configured path prefix, if there is one. The
29
- // resulting path then can be shown to the user or compared against paths
30
- // specified in the configuration.
25
+ // WithPathPrefix takes a path that is relative to the current directory (as used in issues)
26
+ // and adds the configured path prefix, if there is one.
27
+ // The resulting path then can be shown to the user or compared against paths specified in the configuration.
31
28
func WithPathPrefix (pathPrefix , relativePath string ) string {
32
29
if pathPrefix == "" {
33
30
return relativePath
0 commit comments