Skip to content

Commit

Permalink
Removing unnecessary else.
Browse files Browse the repository at this point in the history
  • Loading branch information
byjg authored Apr 23, 2020
1 parent a294608 commit f842c11
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/OpenApi/OpenApiResponseBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ public function match($body)
$defintion = $this->schema->getDefinition($this->structure['$ref']);
return $this->matchSchema($this->name, $defintion, $body);
}
else {
return $this->matchSchema($this->name, $this->structure['content'][key($this->structure['content'])]['schema'], $body);
}

return $this->matchSchema($this->name, $this->structure['content'][key($this->structure['content'])]['schema'], $body);
}
}

0 comments on commit f842c11

Please sign in to comment.