summaryrefslogtreecommitdiff
path: root/debug/frames.go
diff options
context:
space:
mode:
Diffstat (limited to 'debug/frames.go')
-rw-r--r--debug/frames.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/debug/frames.go b/debug/frames.go
index 88a48f0..2110dcd 100644
--- a/debug/frames.go
+++ b/debug/frames.go
@@ -18,9 +18,9 @@ func getPackageName(f runtime.Frame) string {
if parts[pl-2][0] == '(' {
return strings.Join(parts[0:pl-2], ".")
- } else {
- return strings.Join(parts[0:pl-1], ".")
}
+
+ return strings.Join(parts[0:pl-1], ".")
}
func getVarName(filename string, lineNo int) string {