mirror of
https://github.com/scratchfoundation/scratch-desktop.git
synced 2024-12-22 21:52:31 -05:00
fix lint problems
This commit is contained in:
parent
ddd1156dea
commit
740872d14a
4 changed files with 4 additions and 4 deletions
|
@ -77,7 +77,7 @@ class ScratchDesktopTelemetry {
|
||||||
}
|
}
|
||||||
|
|
||||||
_buildMetadata (metadata) {
|
_buildMetadata (metadata) {
|
||||||
const { projectName, language, ...codeMetadata } = metadata;
|
const {projectName, language, ...codeMetadata} = metadata;
|
||||||
return defaultsDeep({
|
return defaultsDeep({
|
||||||
projectName,
|
projectName,
|
||||||
language,
|
language,
|
||||||
|
|
|
@ -87,7 +87,6 @@ class TelemetryClient {
|
||||||
this._store = new ElectronStore({
|
this._store = new ElectronStore({
|
||||||
name: storeName
|
name: storeName
|
||||||
});
|
});
|
||||||
console.log(`Telemetry configuration storage path: ${this._store.path}`);
|
|
||||||
|
|
||||||
if (clientID) {
|
if (clientID) {
|
||||||
this.clientID = clientID;
|
this.clientID = clientID;
|
||||||
|
@ -263,6 +262,7 @@ class TelemetryClient {
|
||||||
if (packetInfo.attempts < this._deliveryAttemptLimit) {
|
if (packetInfo.attempts < this._deliveryAttemptLimit) {
|
||||||
this._packetQueue.push(packetInfo);
|
this._packetQueue.push(packetInfo);
|
||||||
} else {
|
} else {
|
||||||
|
// eslint-disable-next-line no-console
|
||||||
console.warn('Dropping packet which exceeded retry limit', packet);
|
console.warn('Dropping packet which exceeded retry limit', packet);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom';
|
||||||
import {author, productName, version} from '../../package.json';
|
import {productName, version} from '../../package.json';
|
||||||
|
|
||||||
import logo from '../icon/ScratchDesktop.svg';
|
import logo from '../icon/ScratchDesktop.svg';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
|
||||||
const isProduction = (process.env.NODE_ENV === 'production');
|
const isProduction = (process.env.NODE_ENV === 'production');
|
||||||
|
|
||||||
const electronVersion = childProcess.execSync(`${electronPath} --version`, {encoding: 'utf8'}).trim();
|
const electronVersion = childProcess.execSync(`${electronPath} --version`, {encoding: 'utf8'}).trim();
|
||||||
console.log(`Targeting Electron ${electronVersion}`);
|
console.log(`Targeting Electron ${electronVersion}`); // eslint-disable-line no-console
|
||||||
|
|
||||||
const makeConfig = function (options) {
|
const makeConfig = function (options) {
|
||||||
// eslint-disable-next-line no-console
|
// eslint-disable-next-line no-console
|
||||||
|
|
Loading…
Reference in a new issue