Skip to content

Commit 521e771

Browse files
fix: remove redundant returns in the code
1 parent 159b7b6 commit 521e771

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

hack/windows/archive-proxy/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,11 @@ func main() {
2626
exePath, err := os.Executable()
2727
if err != nil {
2828
log.Fatalf("Error getting executable path: %v\n", err)
29-
return
3029
}
3130

3231
exeAbsPath, err := filepath.Abs(exePath)
3332
if err != nil {
3433
log.Fatalf("Error getting executable absolute path: %v\n", err)
35-
return
3634
}
3735

3836
// Fabricate the elastic-agent.exe path that reside inside the data/elastic-agent-{commit-short-sha} directory

0 commit comments

Comments
 (0)