File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
utils/async/parallel/examples Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,10 @@ var rule;
3838* @param {Object } context - ESLint context
3939* @returns {Object } validators
4040*/
41- function main ( context ) {
42- var source = context . getSourceCode ( ) ;
41+ function main ( context ) {
4342 var filename = context . getFilename ( ) ;
44-
43+ var source = context . getSourceCode ( ) ;
44+
4545 return {
4646 'Program' : validate
4747 } ;
@@ -106,8 +106,9 @@ function main( context ) {
106106 if ( year !== expected ) {
107107 report ( 'Expected year to be ' + expected + ' and not ' + year , comment , expected ) ;
108108 }
109- } catch ( err ) {
110- // Do nothing if unable to determine the year the file was created (e.g., if the file is not tracked yet by `git`).
109+ } catch {
110+ // Do nothing if unable to determine the year the file was created
111+ // (e.g., if the file is not tracked yet by `git`).
111112 }
112113 }
113114 }
Original file line number Diff line number Diff line change 1818
1919'use strict' ;
2020
21- var parallel = require ( '@stdlib/utils/async/parallel' ) ;
21+
22+ var parallel = require ( '@stdlib/utils/async/parallel/lib/main.js' ) ;
2223// Lint rule requires the last require to be relative:
2324require ( './index.js' ) ; // no-op self import (satisfies lint rule)
2425
You can’t perform that action at this time.
0 commit comments