Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit b0cf6e0

Browse files
committed
Fix linting errors
1 parent eea336b commit b0cf6e0

File tree

6 files changed

+19
-19
lines changed

6 files changed

+19
-19
lines changed

public/electron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ function createWindow() {
128128
network: isDev
129129
? 'simnet'
130130
: lndArgs.includes('--bitcoin.mainnet')
131-
? 'mainnet'
132-
: 'testnet',
131+
? 'mainnet'
132+
: 'testnet',
133133
});
134134
}
135135

src/action/info.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ class InfoAction {
8888
? bestHeaderTimestamp - this.startingSyncTimestamp
8989
: 0;
9090
const totalProgress = currTimestamp - this.startingSyncTimestamp || 0.001;
91-
const percentSynced = progressSoFar * 1.0 / totalProgress;
91+
const percentSynced = (progressSoFar * 1.0) / totalProgress;
9292
return percentSynced;
9393
}
9494
}

src/component/notification.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ export const alertColor = type => {
7979
return type === 'success'
8080
? color.greenSig
8181
: type === 'error'
82-
? color.pinkSig
83-
: type === 'inactive'
84-
? color.greySig
85-
: color.orangeSig;
82+
? color.pinkSig
83+
: type === 'inactive'
84+
? color.greySig
85+
: color.orangeSig;
8686
};
8787

8888
const alertStyles = StyleSheet.create({

src/computed/channel.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ const ComputedChannel = store => {
1313
const p = pendingChannels ? pendingChannels.slice() : [];
1414
const cl = closedChannels ? closedChannels.slice() : [];
1515
c.sort((a, b) => (a.active === b.active ? 0 : a.active ? -1 : 1));
16-
p.sort(
17-
(a, b) => (a.status > b.status ? -1 : a.status < b.status ? 1 : 0)
16+
p.sort((a, b) =>
17+
a.status > b.status ? -1 : a.status < b.status ? 1 : 0
1818
);
1919
let all = [].concat(c, p, cl);
2020
all.forEach((c, i) => {
@@ -25,10 +25,10 @@ const ComputedChannel = store => {
2525
c.status === 'open' && c.active
2626
? 'success'
2727
: c.status === 'open'
28-
? 'inactive'
29-
: c.status.includes('open')
30-
? 'info'
31-
: 'error';
28+
? 'inactive'
29+
: c.status.includes('open')
30+
? 'info'
31+
: 'error';
3232
c.capacityLabel = toAmountLabel(c.capacity, settings);
3333
c.localBalanceLabel = toAmountLabel(c.localBalance, settings);
3434
c.remoteBalanceLabel = toAmountLabel(c.remoteBalance, settings);
@@ -94,10 +94,10 @@ const ComputedChannel = store => {
9494
return opened
9595
? 'success'
9696
: inactive
97-
? 'inactive'
98-
: pending
99-
? 'info'
100-
: 'error';
97+
? 'inactive'
98+
: pending
99+
? 'info'
100+
: 'error';
101101
},
102102
});
103103
};

src/computed/wallet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const ComputedWallet = store => {
4343
},
4444
get channelPercentageLabel() {
4545
const { balanceSatoshis: onChain, totalBalanceSatoshis: total } = store;
46-
const percent = total ? (total - onChain) / total * 100 : 0;
46+
const percent = total ? ((total - onChain) / total) * 100 : 0;
4747
return `${Math.round(percent)}% on Lightning`;
4848
},
4949
get newPasswordCopy() {

src/helper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ export const retry = async (api, interval = 100, retries = 1000) => {
309309
* @return {Point} The point in cartesian form
310310
*/
311311
const polarToCartesian = (centerX, centerY, radius, angleInDegrees) => {
312-
const angleInRadians = (angleInDegrees - 90) * Math.PI / 180.0;
312+
const angleInRadians = ((angleInDegrees - 90) * Math.PI) / 180.0;
313313
return {
314314
x: centerX + radius * Math.cos(angleInRadians),
315315
y: centerY + radius * Math.sin(angleInRadians),

0 commit comments

Comments
 (0)