Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 27, 2019
1 parent 1641a7c commit 50bd9f2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 6 additions & 4 deletions fetch-solana-install-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}`);
Expand Down
4 changes: 3 additions & 1 deletion src/app.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 50bd9f2

Please sign in to comment.