Skip to content

✨ use generics for pointer convertion#5344

Merged
vjeffrey merged 1 commit intomainfrom
afiune/generics
Apr 1, 2025
Merged

✨ use generics for pointer convertion#5344
vjeffrey merged 1 commit intomainfrom
afiune/generics

Conversation

@afiune
Copy link
Copy Markdown
Contributor

@afiune afiune commented Mar 21, 2025

Signed-off-by: Salim Afiune Maya <afiune@mondoo.com>
args["arn"] = llx.StringData(convert.ToString(project.Arn))
args["description"] = llx.StringData(convert.ToString(project.Description))
args["arn"] = llx.StringDataPtr(project.Arn)
args["description"] = llx.StringDataPtr(project.Description)
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There are cases like this one where, we could use StringDataPtr() instead of StringData() but, I do not know the implications of that change since one SETs the field to an empty string and the other one doesn't set it, but returns a Nil data type.

I am on board to leave these as is and not use StringDataPtr() but I am open to suggestions.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 21, 2025

Test Results

3 640 tests  +26   3 636 ✅ +26   1m 55s ⏱️ +4s
  397 suites ± 0       4 💤 ± 0 
   30 files   ± 0       0 ❌ ± 0 

Results for commit 666e821. ± Comparison against base commit b73ea17.

♻️ This comment has been updated with latest results.

@afiune afiune requested a review from vjeffrey March 28, 2025 19:10
@vjeffrey vjeffrey merged commit 635ad20 into main Apr 1, 2025
17 checks passed
@vjeffrey vjeffrey deleted the afiune/generics branch April 1, 2025 16:54
@github-actions github-actions Bot locked and limited conversation to collaborators Apr 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants