From e126ed0aa85eedca3a38dfeef5249de117226ab3 Mon Sep 17 00:00:00 2001 From: Brian Buller Date: Thu, 4 Dec 2025 10:41:48 -0600 Subject: [PATCH] A little cleanup --- project.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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, "/") {