Skip to content
This repository has been archived by the owner on Aug 22, 2022. It is now read-only.

Commit

Permalink
be consistent with use of parentheses in fat arrow function defs
Browse files Browse the repository at this point in the history
  • Loading branch information
claus committed Jul 7, 2016
1 parent bba27c1 commit f94ccb4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion client/src/components/Channel.js
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class Channel extends React.Component {
renderMessages() {
const { messages, username, channelName, loading, loadingText, reachedChannelStart, appSettings } = this.state;
const { colorifyUsernames, useEmojis, useMonospaceFont, font, monospaceFont, spacing } = appSettings;
const elements = messages.map(message => (
const elements = messages.map((message) => (
<Message
message={message.payload}
key={message.hash}
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/ChannelsPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class ChannelsPanel extends React.Component {
const channelsHeaderClass = this.state.openChannels.length > 0 ? "panelHeader" : "hidden";
const channelJoinInputClass = !this.state.loading ? "joinChannelInput" : "joinChannelInput invisible";

const openChannels = this.state.openChannels.map(channel => this._renderChannel(channel));
const openChannels = this.state.openChannels.map((channel) => this._renderChannel(channel));

const transitionProps = {
component: 'div',
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/File.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ class File extends React.Component {
previewContent: 'Loading...',
}, () => {
if (this.state.showPreview) {
ChannelActions.loadFile(this.props.hash, blob => {
ChannelActions.loadFile(this.props.hash, (blob) => {
let previewContent = 'Unable to display file.';
if (blob) {
const url = window.URL.createObjectURL(blob);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Message extends React.Component {
if (post.content.startsWith('/me')) {
state.isCommand = true;
}
post.content.split(' ').forEach(word => {
post.content.split(' ').forEach((word) => {
const highlight = MentionHighlighter.highlight(word, this.props.highlightWords);
if(typeof highlight[0] !== 'string' && this.props.highlightWords !== post.meta.from) {
state.hasHighlights = true;
Expand Down
2 changes: 1 addition & 1 deletion client/src/stores/MessageStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ const MessageStore = Reflux.createStore({
},
onLoadFile: function(hash, cb) {
if(!this.socket) {
this.orbit.getFile(hash).then(cb).catch(err => cb(null));
this.orbit.getFile(hash).then(cb).catch((err) => cb(null));
return;
}

Expand Down

0 comments on commit f94ccb4

Please sign in to comment.