Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trxcllnt committed Jan 9, 2019
1 parent ec12cdd commit ca0db9e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion js/src/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Data<T extends DataType = DataType> {
public readonly nullBitmap: Buffers<T>[BufferType.VALIDITY];
// @ts-ignore
public readonly valueOffsets: Buffers<T>[BufferType.OFFSET];

public get ArrayType() { return this.type.ArrayType; }
public get typeId(): T['TType'] { return this.type.typeId; }
public get buffers() {
Expand Down
16 changes: 8 additions & 8 deletions js/src/util/bn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,13 @@ export interface BN<T extends BigNumArray> extends TypedArrayLike<T> {
readonly signed: boolean;

[Symbol.toStringTag]:
"Int8Array" |
"Int16Array" |
"Int32Array" |
"Uint8Array" |
"Uint16Array" |
"Uint32Array" |
"Uint8ClampedArray"
'Int8Array' |
'Int16Array' |
'Int32Array' |
'Uint8Array' |
'Uint16Array' |
'Uint32Array' |
'Uint8ClampedArray';

/**
* Convert the bytes to their (positive) decimal representation for printing
Expand All @@ -92,7 +92,7 @@ export interface BN<T extends BigNumArray> extends TypedArrayLike<T> {
valueOf(): number;
/**
* Return the JSON representation of the bytes. Must be wrapped in double-quotes,
* so it's compatible with JSON.stringify().
* so it's compatible with JSON.stringify().
*/
toJSON(): string;
[Symbol.iterator](): IterableIterator<BN<T>>;
Expand Down
4 changes: 2 additions & 2 deletions js/src/util/pretty.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

/** @ignore */
export function valueToString(x: any) {
if (x === null) return 'null';
if (x === undf) return 'undefined';
if (x === null) { return 'null'; }
if (x === undf) { return 'undefined'; }
if (typeof x === 'string') { return `"${x}"`; }
// If [Symbol.toPrimitive] is implemented (like in BN)
// use it instead of JSON.stringify(). This ensures we
Expand Down

0 comments on commit ca0db9e

Please sign in to comment.