Skip to content

Commit 73a9f65

Browse files
committed
review
1 parent 9c60f7c commit 73a9f65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/extensions/webbotauth.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ func BuildWebBotAuth(ctx context.Context, in ExtensionsBuildWebBotAuthInput) (*B
6363
if !st.IsDir() {
6464
return nil, fmt.Errorf("output path exists and is not a directory: %s", outputDir)
6565
}
66-
entries, _ := os.ReadDir(outputDir)
66+
entries, err := os.ReadDir(outputDir)
67+
if err != nil {
68+
return nil, fmt.Errorf("failed to read output directory: %w", err)
69+
}
6770
if len(entries) > 0 {
6871
return nil, fmt.Errorf("output directory must be empty: %s", outputDir)
6972
}

0 commit comments

Comments
 (0)