summaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorAdam Scarr <adam@vektah.net>2017-08-11 00:08:08 +1000
committerAdam Scarr <adam@vektah.net>2017-08-11 00:08:08 +1000
commit60dd11deeec8254da45f9f5b7d24dedef27c4f53 (patch)
tree4c60a98e94d7b89204fa698496b75dcbf71cd42d /debug
parentb2713a0653eca81d1428112dd8b29b3fd4c53089 (diff)
Add go report card
Diffstat (limited to 'debug')
-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 {