From 7623d95e1125caa6dc7d43be81b67cfef0ec4645 Mon Sep 17 00:00:00 2001 From: Justin Stephenson Date: Wed, 5 Jul 2023 10:43:24 -0400 Subject: [PATCH] Minor Eslint fixes --- src/config.jsx | 2 +- src/player.jsx | 2 +- src/recordings.jsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/config.jsx b/src/config.jsx index 078aa07..ead9c87 100644 --- a/src/config.jsx +++ b/src/config.jsx @@ -129,7 +129,7 @@ class GeneralConfig extends React.Component { for (const i in ob) { if (!Object.prototype.hasOwnProperty.call(ob, i)) continue; - if ((typeof ob[i]) == 'object') { + if ((typeof ob[i]) === 'object') { const flatObject = flattenObject(ob[i]); for (const x in flatObject) { if (!Object.prototype.hasOwnProperty.call(flatObject, x)) continue; diff --git a/src/player.jsx b/src/player.jsx index 0e2c9ca..ff48419 100644 --- a/src/player.jsx +++ b/src/player.jsx @@ -246,7 +246,7 @@ const PacketBuffer = class { this.reportError("\"" + field + "\" field is missing"); } const value = object[field]; - if (typeof (value) != typeof (type)) { + if (typeof (value) !== typeof (type)) { this.reportError("invalid \"" + field + "\" field type: " + typeof (value)); } return value; diff --git a/src/recordings.jsx b/src/recordings.jsx index 092c0ec..dab95e9 100644 --- a/src/recordings.jsx +++ b/src/recordings.jsx @@ -137,7 +137,7 @@ function LogElement(props) { const cursor = entry.__CURSOR; const entry_timestamp = parseInt(entry.__REALTIME_TIMESTAMP / 1000); - const timeClick = function(_e) { + const timeClick = (_e) => { const ts = entry_timestamp - start; if (ts > 0) { props.onJumpToTs(ts);