Skip to content

Commit

Permalink
Fix lint errors for operator linebreaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
filmaj committed Aug 23, 2021
1 parent 4421b4e commit 7972b9c
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -714,10 +714,9 @@ export default class App {
const createSay = (channelId: string): SayFn => {
const token = selectToken(context);
return (message: Parameters<SayFn>[0]) => {
const postMessageArguments: ChatPostMessageArguments =
typeof message === 'string'
? { token, text: message, channel: channelId }
: { ...message, token, channel: channelId };
const postMessageArguments: ChatPostMessageArguments = typeof message === 'string' ?
{ token, text: message, channel: channelId } :
{ ...message, token, channel: channelId };

return this.client.chat.postMessage(postMessageArguments);
};
Expand Down

0 comments on commit 7972b9c

Please sign in to comment.