You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
fix some more lint warnings, as limit is 16 now
This commit is contained in:
@@ -78,7 +78,6 @@ export default class HeaderButtons extends React.Component {
|
|||||||
// till show_right_panel, just without the fromHeader flag
|
// till show_right_panel, just without the fromHeader flag
|
||||||
// as that would hide the right panel again
|
// as that would hide the right panel again
|
||||||
dis.dispatch(Object.assign({}, payload, {fromHeader: false}));
|
dis.dispatch(Object.assign({}, payload, {fromHeader: false}));
|
||||||
|
|
||||||
}
|
}
|
||||||
this.setState({
|
this.setState({
|
||||||
phase: payload.phase,
|
phase: payload.phase,
|
||||||
|
|||||||
@@ -69,6 +69,7 @@ export default class Timer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* if not started before, starts the timer.
|
* if not started before, starts the timer.
|
||||||
|
* @returns {Timer} the same timer
|
||||||
*/
|
*/
|
||||||
start() {
|
start() {
|
||||||
if (!this.isRunning()) {
|
if (!this.isRunning()) {
|
||||||
@@ -80,6 +81,7 @@ export default class Timer {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* (re)start the timer. If it's running, reset the timeout. If not, start it.
|
* (re)start the timer. If it's running, reset the timeout. If not, start it.
|
||||||
|
* @returns {Timer} the same timer
|
||||||
*/
|
*/
|
||||||
restart() {
|
restart() {
|
||||||
if (this.isRunning()) {
|
if (this.isRunning()) {
|
||||||
@@ -97,6 +99,7 @@ export default class Timer {
|
|||||||
/**
|
/**
|
||||||
* if the timer is running, abort it,
|
* if the timer is running, abort it,
|
||||||
* and reject the promise for this timer.
|
* and reject the promise for this timer.
|
||||||
|
* @returns {Timer} the same timer
|
||||||
*/
|
*/
|
||||||
abort() {
|
abort() {
|
||||||
if (this.isRunning()) {
|
if (this.isRunning()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user