Skip to content

Commit 39099ec

Browse files
committed
Remove unnecessary nil check
1 parent d776940 commit 39099ec

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pkg/github/actions.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,8 @@ func RunWorkflow(getClient GetClientFn, t translations.TranslationHelperFunc) (t
6161

6262
// Convert inputs to the format expected by the GitHub API
6363
inputsMap := make(map[string]any)
64-
if inputs != nil {
65-
for k, v := range inputs {
66-
inputsMap[k] = v
67-
}
64+
for k, v := range inputs {
65+
inputsMap[k] = v
6866
}
6967

7068
// Create the event to dispatch

0 commit comments

Comments
 (0)