From 50bd9f27db80d357e639af6596ca0b9283ab99cd Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 27 Jun 2019 11:07:29 -0700 Subject: [PATCH] fix: lint --- fetch-solana-install-init.js | 10 ++++++---- src/app.jsx | 4 +++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/fetch-solana-install-init.js b/fetch-solana-install-init.js index 8ea98f3..adfa9f8 100644 --- a/fetch-solana-install-init.js +++ b/fetch-solana-install-init.js @@ -6,7 +6,7 @@ import fetch from 'node-fetch'; import got from 'got'; import fs from 'fs'; -//const channel = 'github-release'; +// const channel = 'github-release'; const channel = 'v0.16.0'; // Use 'latest', or "id" field of the desired release from @@ -23,13 +23,15 @@ async function download(assetName, dest) { let downloadUrl; if (channel === 'github-release') { - const releaseUrl = - `https://api.github.com/repos/solana-labs/solana/releases/${githubReleaseId}`; + const releaseUrl = `https://api.github.com/repos/solana-labs/solana/releases/${githubReleaseId}`; console.log(`Fetching ${releaseUrl}...`); const response = await fetch(releaseUrl); const releaseInfo = await response.json(); - if (typeof releaseInfo !== 'object' || typeof releaseInfo.assets !== 'object') { + if ( + typeof releaseInfo !== 'object' || + typeof releaseInfo.assets !== 'object' + ) { console.error('response:', response); console.error('releaseInfo:', releaseInfo); throw new Error(`Unable to locate a release asset named ${assetName}`); diff --git a/src/app.jsx b/src/app.jsx index c361e8e..b4ec42f 100644 --- a/src/app.jsx +++ b/src/app.jsx @@ -96,7 +96,9 @@ class App extends React.Component { for (let i = 0; i <= 1000; i += 1) { newOutputs = Outputs.addRecord( newOutputs, - OutputFactory.makeTextOutput(`${i}: this is a replicator log message...`), + OutputFactory.makeTextOutput( + `${i}: this is a replicator log message...`, + ), ); } log.info(newOutputs.count());