Skip to content

Commit

Permalink
remove redundant code (#104)
Browse files Browse the repository at this point in the history
Removed a redundant function to remove self-references directories on transformation sanitizePath
  • Loading branch information
syinwu authored Nov 17, 2021
1 parent 715a2ce commit 8aaa7bc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions transformations/normalise_path.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@ func NormalisePath(data string, utils *Tools) string {
if clean == "." {
return ""
}
if leng >= 2 && clean[0] == '.' && clean[1] == '/' {
clean = clean[2:]
}
if data[len(data)-1] == '/' {
return clean + "/"
} else {
Expand Down

0 comments on commit 8aaa7bc

Please sign in to comment.