Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d8afe9b

Browse files
committed
fix logic to pass tests
1 parent 9021af2 commit d8afe9b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

agent/agent.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1408,7 +1408,7 @@ func expandDirectory(dir string) (string, error) {
14081408
dir = filepath.Join(home, dir[1:])
14091409
}
14101410
//if the directory is not absolute, we make it absolute
1411-
if dir[0] != '/' {
1411+
else if dir[0] != '/' {
14121412
home, err := userHomeDir()
14131413
if err != nil {
14141414
return "", err

0 commit comments

Comments
 (0)