Skip to content

Conversation

@huyenltnguyen
Copy link
Member

Checklist:

Closes #XXXXX

@huyenltnguyen huyenltnguyen marked this pull request as ready for review June 17, 2025 20:40
@huyenltnguyen huyenltnguyen requested a review from a team as a code owner June 17, 2025 20:40
url,
block.superBlock.dashedName,
block.superBlock.name,
block.superBlock.name.toString(),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
block.superBlock.name.toString(),
block.superBlock.name.value,

return Block(
superBlock: SuperBlock(
dashedName: superBlockDashedName,
name: superBlockName,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this variable is replaced, we can remove it from the function arguments as it's not used anywhere else

TODO: Add a linter rule to catch unused arguments/parameters

if (chapterBasedSuperBlocks.contains(dashedName)) {
return SuperBlock(
dashedName: dashedName,
name: name,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since this variable is replaced, we can remove it from the function arguments as it's not used anywhere else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants