Skip to content

Conversation

@brancz
Copy link
Member

@brancz brancz commented Aug 8, 2023

No description provided.

@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Aug 8, 2023

🤖 Meticulous replayed 50 user sessions and took 214 screenshots. Meticulous has not yet run on cc5988a of the main branch and so there was nothing to compare against.

If you recently setup Meticulous, this is expected. Meticulous will start reporting comparisons for new pull requests after the next commit to the main branch.

Last updated for commit 50e50c3. This comment will update as new commits are pushed.

if lineRow >= 0 && r.LineFunction.IsValid(lineRow) && len(r.LineFunctionNameDict.Value(r.LineFunctionName.GetValueIndex(lineRow))) > 0 {
_ = fb.builderFunctionName.Append(r.LineFunctionNameDict.Value(r.LineFunctionName.GetValueIndex(lineRow)))
} else {
if r.LineFunctionNameDict.Len() == 0 {
Copy link
Member

Choose a reason for hiding this comment

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

nit: I think you can collapse both AppendNull branches by adding the inverse of this Len check to lineRow >= 0

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah I agree this needs some refactoring, but this is gonna change with unifying dictionaries anyway so I kept it consistent with the rest of the codebase.

if r.LineFunctionSystemNameDict.Len() == 0 {
fb.builderFunctionSystemName.AppendNull()
} else {
if lineRow >= 0 && r.LineFunction.IsValid(lineRow) && len(r.LineFunctionSystemNameDict.Value(r.LineFunctionSystemName.GetValueIndex(lineRow))) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

It feels like the case implementation could be a helper function used by the branches. Maybe for a later refactoring.

@brancz brancz merged commit 1694b2b into main Aug 8, 2023
@brancz brancz deleted the function-dict-empty branch August 8, 2023 11:19
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.

3 participants