Skip to content

Commit

Permalink
asyncapi#855 fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenRover committed Dec 7, 2023
1 parent 97d215e commit 4825481
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions library/src/containers/Operations/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,23 +429,19 @@ export const OperationReplyChannelInfo: React.FunctionComponent<Props> = ({
operation,
}) => {
const reply = operation.reply();
if (reply === undefined) {
return <></>;
}

const channel = reply.channel();
if (channel === undefined) {
return <></>;
}
const channel = reply?.channel();

const channelName = channel?.address() ?? '';

const config = useConfig();
const servers =
typeof channel.servers === 'function' && channel.servers().all();
typeof channel?.servers === 'function' && channel.servers().all();
const parameters =
channel.parameters() !== undefined
channel?.parameters() !== undefined
? SchemaHelpers.parametersToSchema(channel.parameters())
: undefined;

if (!channel) {
return <></>;
}
Expand Down

0 comments on commit 4825481

Please sign in to comment.