Skip to content

Commit

Permalink
Add a comment to exported method.
Browse files Browse the repository at this point in the history
  • Loading branch information
ernstvonoelsen committed Apr 8, 2024
1 parent 829d4a1 commit 28baaef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/files/sources.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ type LocalSource struct {

func NewLocalSource(path, dir string) LocalSource { return LocalSource{path, dir} }

// Description return the file's path
func (s LocalSource) Description() string { return fmt.Sprintf("file %s", s.path) }

func (s LocalSource) RelativePath() (string, error) {
Expand Down

0 comments on commit 28baaef

Please sign in to comment.