More small readability enhancements (#1296)
* More small readability enhancements * Pacify CC on manual checks
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user