From 60dd11deeec8254da45f9f5b7d24dedef27c4f53 Mon Sep 17 00:00:00 2001 From: Adam Scarr Date: Fri, 11 Aug 2017 00:08:08 +1000 Subject: Add go report card --- debug/frames.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'debug/frames.go') 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 { -- cgit v1.2.3