From 7847e94cfaea9c1078c83506428fa66984ca14fa Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Sun, 18 Oct 2015 10:24:38 -0700 Subject: [PATCH] proc: Small refactor --- proc/proc.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/proc/proc.go b/proc/proc.go index b6a76e1c..d3d873d1 100644 --- a/proc/proc.go +++ b/proc/proc.go @@ -186,9 +186,8 @@ func (dbp *Process) FindFunctionLocation(funcName string, firstLine bool, lineOf if len(lines) > 0 { linePC, _, err := dbp.goSymTable.LineToPC(filename, lines[0]) return linePC, err - } else { - return fn.Entry, nil } + return fn.Entry, nil } else if lineOffset > 0 { filename, lineno, _ := dbp.goSymTable.PCToLine(fn.Entry) breakAddr, _, err := dbp.goSymTable.LineToPC(filename, lineno+lineOffset) -- GitLab