Commit f17f523
go/packages: remove filepath.Abs call in getPkgPath
getPkgPath is only called in one place and it is already guarded with
filepath.IsAbs, so we don't have to call filepath.Abs here.
go/packages should not call filepath.Abs (as the working directory is
configurable cfg.Dir), here we can avoid that.
Change-Id: I50320387dd56bbe8809d36ceccf92f8b7d5d30ff
Reviewed-on: https://go-review.googlesource.com/c/tools/+/680818
Reviewed-by: Alan Donovan <[email protected]>
Auto-Submit: Alan Donovan <[email protected]>
Commit-Queue: Alan Donovan <[email protected]>
Reviewed-by: Robert Findley <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>1 parent f0ace13 commit f17f523
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
712 | 712 | | |
713 | 713 | | |
714 | 714 | | |
715 | | - | |
716 | | - | |
717 | | - | |
| 715 | + | |
| 716 | + | |
718 | 717 | | |
719 | 718 | | |
720 | 719 | | |
| |||
724 | 723 | | |
725 | 724 | | |
726 | 725 | | |
727 | | - | |
| 726 | + | |
728 | 727 | | |
729 | 728 | | |
730 | 729 | | |
| |||
0 commit comments