More small readability enhancements (#1296)

* More small readability enhancements

* Pacify CC on manual checks
This commit is contained in:
Jaco Greeff
2019-08-11 22:44:02 +02:00
committed by GitHub
parent a12a776392
commit 5ee2caf00e
8 changed files with 91 additions and 87 deletions
@@ -26,7 +26,6 @@ import { HeaderAndValidators } from './subscribeNewHead';
*/
export function getHeader (api: ApiInterfaceRx): (hash: Uint8Array | string) => Observable<HeaderExtended | undefined> {
return (hash: Uint8Array | string): Observable<HeaderExtended | undefined> =>
// tslint:disable-next-line
(combineLatest([
api.rpc.chain.getHeader(hash),
api.query.session
@@ -40,7 +39,6 @@ export function getHeader (api: ApiInterfaceRx): (hash: Uint8Array | string) =>
// where rpc.chain.getHeader throws, we will land here - it can happen that
// we supplied an invalid hash. (Due to defaults, storeage will have an
// empty value, so only the RPC is affected). So return undefined
// tslint:disable-next-line
of() as Observable<undefined>
),
drr()