Skip to content

Commit 716a14d

Browse files
Wrong variable being checked for null (#1005)
Seems like this was a typo but need confirmation on this
1 parent c79cdbb commit 716a14d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

slack-api-client/src/main/java/com/slack/api/methods/RequestFormBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2472,9 +2472,9 @@ public static FormBody.Builder toForm(WorkflowsUpdateStepRequest req) {
24722472
setIfNotNull("workflow_step_edit_id", req.getWorkflowStepEditId(), form);
24732473
setIfNotNull("step_image_url", req.getStepImageUrl(), form);
24742474
setIfNotNull("step_name", req.getStepName(), form);
2475-
if (req.getOutputsAsString() != null) {
2475+
if (req.getInputsAsString() != null) {
24762476
setIfNotNull("inputs", req.getInputsAsString(), form);
2477-
} else if (req.getOutputs() != null) {
2477+
} else if (req.getInputs() != null) {
24782478
setIfNotNull("inputs", GSON.toJson(req.getInputs()), form);
24792479
}
24802480
if (req.getOutputsAsString() != null) {

0 commit comments

Comments
 (0)