Skip to content

Commit 6cae5a4

Browse files
authored
fix: Remove unreachable code (#1537)
#### Summary This code is unreachable, so should be removed
1 parent fb09f20 commit 6cae5a4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

serve/package.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,6 @@ func (*PluginServe) getModuleName(pluginDirectory string) (string, error) {
208208
return "", fmt.Errorf("failed to parse import path from go.mod")
209209
}
210210
importPath := importPathMatches[1]
211-
if err != nil {
212-
return "", fmt.Errorf("failed to get import path: %w", err)
213-
}
214211
return strings.TrimSpace(importPath), nil
215212
}
216213

0 commit comments

Comments
 (0)