Skip to content

Commit

Permalink
refactor: remove old guard, as it is not as i expected
Browse files Browse the repository at this point in the history
  • Loading branch information
EagleoutIce committed Aug 3, 2023
1 parent 815afcc commit 41f8d2c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/slicing/reconstruct.ts
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,6 @@ function reconstructFunctionCall(call: RFunctionCall<ParentInformation>, functio
return []
}

guard(functionName.length <= 1, `can not have multiple lines for the function name, got: ${JSON.stringify(functionName)}`)

if(args.length === 0) {
guard(functionName.length === 1, `without args, we need the function name to be present! got: ${JSON.stringify(functionName)}`)
if(call.flavor === 'unnamed' && !functionName[0].line.endsWith(')')) {
Expand Down

0 comments on commit 41f8d2c

Please sign in to comment.