Skip to content

Commit

Permalink
fix line-length and copyright header
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Aug 3, 2017
1 parent 131d1c7 commit 9ab30b7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/views/dialogs/DevtoolsDialog.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright 2017 OpenMarket Ltd
Copyright 2017 Michael Telatynski <[email protected]>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -97,7 +97,9 @@ class SendCustomStateEvent extends React.Component {
async _send() {
try {
const content = JSON.parse(this.refs.evContent.value);
await MatrixClientPeg.get().sendStateEvent(this.refs.roomId.value, this.refs.eventType.value, content, this.refs.stateKey.value);
await MatrixClientPeg.get().sendStateEvent(this.refs.roomId.value, this.refs.eventType.value, content,
this.refs.stateKey.value);

this.props.onFinished(true);
} catch (e) {
this.props.onFinished(false);
Expand Down Expand Up @@ -207,7 +209,9 @@ class RoomStateExplorer extends React.Component {
if (keys.length > 1) {
rows.push(<button key={evType} onClick={this.browseEventType(evType)}>{evType}</button>);
} else if (keys.length === 1) {
rows.push(<button key={evType} onClick={this.onViewSourceClick(stateGroup[keys[0]])}>{evType}</button>);
rows.push(
<button key={evType} onClick={this.onViewSourceClick(stateGroup[keys[0]])}>{evType}</button>
);
}
});
} else {
Expand Down

0 comments on commit 9ab30b7

Please sign in to comment.