diff options
Diffstat (limited to 'app/lib')
| -rw-r--r-- | app/lib/backend.js | 2 | ||||
| -rw-r--r-- | app/lib/keyframe-animation.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/backend.js b/app/lib/backend.js index c7b4ca53ec..b24b495449 100644 --- a/app/lib/backend.js +++ b/app/lib/backend.js @@ -264,7 +264,7 @@ export class Backend { async connect() { try { - let currentState = await this._ipc.getState(); + const currentState = await this._ipc.getState(); if (currentState.state === 'secured') { log.debug('Refusing to connect as connection is already secured'); this._store.dispatch(connectionActions.connected()); diff --git a/app/lib/keyframe-animation.js b/app/lib/keyframe-animation.js index 7a8968eb35..2961412230 100644 --- a/app/lib/keyframe-animation.js +++ b/app/lib/keyframe-animation.js @@ -124,7 +124,7 @@ export default class KeyframeAnimation { } play(options: KeyframeAnimationOptions = {}) { - let { startFrame, endFrame, beginFromCurrentState, advanceTo } = options; + const { startFrame, endFrame, beginFromCurrentState, advanceTo } = options; if (startFrame !== undefined && endFrame !== undefined) { if (startFrame < 0 || startFrame >= this._numFrames) { @@ -216,7 +216,7 @@ export default class KeyframeAnimation { return; } - let lastFrame = this._frameRange[this._reverse ? 0 : 1]; + const lastFrame = this._frameRange[this._reverse ? 0 : 1]; if (this._currentFrame === lastFrame) { // mark animation as finished if it's not repeating if (!this._repeat) { |
