We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent4891cbf commitd2582edCopy full SHA for d2582ed
cli/open.go
@@ -290,11 +290,10 @@ func windowsJoinPath(elem ...string) string {
290
// If the path is being resolved within the workspace, the path will be resolved
291
// relative to the current working directory.
292
funcresolveAgentAbsPath(workingDirectory,relOrAbsPath,agentOSstring,localbool) (string,error) {
293
-ifrelOrAbsPath=="" {
+switch {
294
+caserelOrAbsPath=="":
295
returnworkingDirectory,nil
-}
296
297
-switch {
298
caserelOrAbsPath=="~"||strings.HasPrefix(relOrAbsPath,"~/"):
299
return"",xerrors.Errorf("path %q requires expansion and is not supported, use an absolute path instead",relOrAbsPath)
300