Skip to content

Commit f07d63c

Browse files
authored
fixup! style: fix indentation
1 parent f2fae67 commit f07d63c

File tree

1 file changed

+10
-14
lines changed
  • lib/node_modules/@stdlib/array/fixed-endian-factory/lib

1 file changed

+10
-14
lines changed

lib/node_modules/@stdlib/array/fixed-endian-factory/lib/main.js

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -851,27 +851,25 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
851851
});
852852

853853
/**
854-
* Returns an iterator for array elements.
855-
*
856-
* @private
857-
* @name values
858-
* @memberof TypedArray.prototype
859-
* @type {Function}
860-
* @throws {TypeError} `this` must be a typed array instance
861-
* @returns {Object} iterator for array elements
862-
*/
854+
* Returns an iterator for array elements.
855+
*
856+
* @private
857+
* @name values
858+
* @memberof TypedArray.prototype
859+
* @type {Function}
860+
* @throws {TypeError} `this` must be a typed array instance
861+
* @returns {Object} iterator for array elements
862+
*/
863863
setReadOnly( TypedArray.prototype, 'values', function values() {
864864
var iterator;
865865
var index = 0;
866866
var value;
867867
var isLE = this._isLE;
868868
var buf = this._buffer;
869869
var len = this._length;
870-
871870
if ( !isTypedArray( this ) ) {
872-
throw new TypeError(format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE[ dtype[0] ], CTOR_NAME ) );
871+
throw new TypeError( format( 'invalid invocation. `this` is not %s %s.', CHAR2ARTICLE[ dtype[0] ], CTOR_NAME ) );
873872
}
874-
875873
iterator = {
876874
'next': function next() {
877875
if ( index < len ) {
@@ -887,11 +885,9 @@ function factory( dtype ) { // eslint-disable-line max-lines-per-function, stdli
887885
};
888886
}
889887
};
890-
891888
iterator[ Symbol.iterator ] = function iterator() {
892889
return this;
893890
};
894-
895891
return iterator;
896892
});
897893

0 commit comments

Comments
 (0)