Skip to content

Commit

Permalink
Fixed linter error for commands without arguments.
Browse files Browse the repository at this point in the history
The linter will complain if there is a command with no arguments even though the command itself doesn't have any argument defined in the command dictionary.
  • Loading branch information
goetzrrGit committed Jan 14, 2025
1 parent e107e24 commit 3807179
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utilities/sequence-editor/sequence-linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ function validateCommandStructure(
addDefault: (view: any) => any,
): Diagnostic | undefined {
if (arguments.length > 0) {
if (!argsNode || argsNode.length === 0) {
if (!argsNode || (argsNode.length === 0 && exactArgSize > 0)) {
return {
actions: [],
from: stemNode.from,
Expand Down

0 comments on commit 3807179

Please sign in to comment.