diff --git a/project.go b/project.go index c09675b..b19aa04 100644 --- a/project.go +++ b/project.go @@ -1,3 +1,4 @@ +// Package projecttxt implements struct and routines for working with project.txt files package projecttxt import ( @@ -43,9 +44,7 @@ func ParseProject(text string) (*Project, error) { switch v[0] { case '^': // Project Directory project.Directory = v[1:] - if strings.HasSuffix(project.Directory, "/") { - project.Directory = strings.TrimSuffix(project.Directory, "/") - } + project.Directory = strings.TrimSuffix(project.Directory, "/") case '~': // Project Repo project.Repo = v[1:] if strings.HasPrefix(project.Repo, "/") {