Skip to content

Commit c2719bc

Browse files
authored
Update sync.js
The linter suggests you should add a // throws <Error> comment to indicate the example throws an error, instead of pretending it returns an object. Signed-off-by: JaySoni1 <[email protected]>
1 parent de565a9 commit c2719bc

File tree

1 file changed

+1
-1
lines changed
  • lib/node_modules/@stdlib/_tools/pkgs/deps/lib

1 file changed

+1
-1
lines changed

lib/node_modules/@stdlib/_tools/pkgs/deps/lib/sync.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ var debug = logger( 'pkg-deps:sync' );
5858
* var pkgs = [ '/foo/bar/baz' ];
5959
*
6060
* var deps = pkgDeps( pkgs );
61-
* // returns [{...}]
61+
* // throws <Error>
6262
*/
6363
function pkgDeps( pkgs, options ) {
6464
var results;

0 commit comments

Comments
 (0)