Skip to content

Commit

Permalink
Implement suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Saswata Mukherjee <[email protected]>
  • Loading branch information
saswatamcode committed May 19, 2021
1 parent dc527cb commit da6d797
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/mdformatter/linktransformer/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ func (v *validator) Close(ctx mdformatter.SourceContext) error {
merr := merrors.New()
base, err := os.Getwd()
if err != nil {
merr.Add(errors.Wrapf(err, "could not resolve working dir"))
return errors.Wrap(err, "resolve working dir")
}
path, err := filepath.Rel(base, ctx.Filepath)
if err != nil {
merr.Add(errors.Wrapf(err, "could not find relative path"))
return errors.Wrap(err, "find relative path")
}

for _, k := range keys {
Expand Down

0 comments on commit da6d797

Please sign in to comment.