Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed Oct 22, 2023
1 parent 094571e commit d3791fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options/method.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const getMethodOpts = (args, plugin) => {
return { args }
}

const lastArg = args[args.length - 1]
const lastArg = args.at(-1)
return lastArgIsOptions(plugin, lastArg)
? { args: args.slice(0, -1), methodOpts: { [plugin.name]: lastArg } }
: { args }
Expand Down

0 comments on commit d3791fc

Please sign in to comment.