Skip to content

Commit

Permalink
Stop process line when keyword is missing
Browse files Browse the repository at this point in the history
- fixes #12
  • Loading branch information
mborik committed Jun 9, 2021
1 parent e90543b commit 1e807d1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/formatProcessor.ts
Expand Up @@ -252,6 +252,10 @@ export class FormatProcessor extends ConfigPropsProvider {

(lineParts.fragments || [{ ...lineParts }]).forEach(
({ keyword, firstParam, args = [] }, index) => {
if (!keyword) {
return;
}

if (index) {
newText.push(
configProps.splitInstructionsByColon ?
Expand Down

0 comments on commit 1e807d1

Please sign in to comment.