Formatting cleanups for nested conditionals (#902)

* Formatting cleanups for nested conditionals

* Transports
This commit is contained in:
Jaco Greeff
2021-02-27 11:30:18 +01:00
committed by GitHub
parent 3143e9df1c
commit 843cb3d00a
11 changed files with 50 additions and 40 deletions
+5 -3
View File
@@ -5,6 +5,8 @@ import { xglobal } from '@polkadot/x-global';
import { TextDecoder as Fallback } from './fallback';
export const TextDecoder = typeof xglobal.TextDecoder === 'undefined'
? Fallback as unknown as typeof xglobal.TextDecoder
: xglobal.TextDecoder;
export const TextDecoder = (
typeof xglobal.TextDecoder === 'undefined'
? Fallback as unknown as typeof xglobal.TextDecoder
: xglobal.TextDecoder
);
+5 -3
View File
@@ -5,6 +5,8 @@ import util from 'util';
import { xglobal } from '@polkadot/x-global';
export const TextDecoder = typeof xglobal.TextDecoder === 'undefined'
? util.TextDecoder as unknown as typeof xglobal.TextDecoder
: xglobal.TextDecoder;
export const TextDecoder = (
typeof xglobal.TextDecoder === 'undefined'
? util.TextDecoder as unknown as typeof xglobal.TextDecoder
: xglobal.TextDecoder
);