Skip to content

Commit d4bce04

Browse files
committed
Change check for second argument
arguments.length is larger than one, as `undefined` is passed exlicitly even if no options are set.
1 parent acd77d9 commit d4bce04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • tools/remark/plugins/remark-svg-equations/lib

tools/remark/plugins/remark-svg-equations/lib/attacher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var defaults = require( './defaults.json' );
2323
*/
2424
function attacher( remark, options ) {
2525
var opts = copy( defaults );
26-
if ( arguments.length > 1 ) {
26+
if ( options !== undefined ) {
2727
if ( !isObject( options ) ) {
2828
throw new TypeError( 'invalid input argument. Options argument must be an object. Value: `' + options + '`.' );
2929
}

0 commit comments

Comments
 (0)