Minor Eslint fixes
This commit is contained in:
parent
bd2765f636
commit
7623d95e11
3 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue