Skip to content

Commit e3d94c0

Browse files
authored
chore: fix JavaScript lint errors
PR-URL: #10997 Closes: #10980 Reviewed-by: Athan Reines <kgryte@gmail.com>
1 parent 5a50a24 commit e3d94c0

2 files changed

Lines changed: 16 additions & 17 deletions

File tree

lib/node_modules/@stdlib/_tools/repl-txt/rules/line-length/lib/main.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,22 @@ function pkg2alias( pkg ) {
5151
return null;
5252
}
5353

54+
/**
55+
* Replaces a matched alias annotation with the alias corresponding to the package path.
56+
*
57+
* @private
58+
* @param {string} match - alias annotation
59+
* @param {string} pkg - package name
60+
* @returns {string} alias name or original string
61+
*/
62+
function substituteAlias( match, pkg ) {
63+
var alias = pkg2alias( pkg );
64+
if ( alias ) {
65+
return alias;
66+
}
67+
return match;
68+
}
69+
5470

5571
// MAIN //
5672

@@ -86,22 +102,6 @@ function main( context ) {
86102
}
87103
}
88104

89-
/**
90-
* Replaces a matched alias annotation with the alias corresponding to the package path.
91-
*
92-
* @private
93-
* @param {string} match - alias annotation
94-
* @param {string} pkg - package name
95-
* @returns {string} alias name or original string
96-
*/
97-
function substituteAlias( match, pkg ) {
98-
var alias = pkg2alias( pkg );
99-
if ( alias ) {
100-
return alias;
101-
}
102-
return match;
103-
}
104-
105105
return {
106106
'function': lineLength
107107
};

lib/node_modules/@stdlib/blas/base/ssyr/test/test.ndarray.native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ var rsa1nsa2 = require( './fixtures/row_major_sa1n_sa2.json' );
4141
var rsa1sa2n = require( './fixtures/row_major_sa1_sa2n.json' );
4242
var rsa1nsa2n = require( './fixtures/row_major_sa1n_sa2n.json' );
4343
var rcap = require( './fixtures/row_major_complex_access_pattern.json' );
44-
4544
var cu = require( './fixtures/column_major_u.json' );
4645
var cl = require( './fixtures/column_major_l.json' );
4746
var cxp = require( './fixtures/column_major_xp.json' );

0 commit comments

Comments
 (0)