Skip to content

Conversation

MichaelGHSeg
Copy link
Contributor

No description provided.


var filteredTags = tags.toMap()
if (!sendWriteKeyOnError) filteredTags = tags.filterKeys { it.lowercase() != "writekey" }
var filteredTags = if(sendWriteKeyOnError) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I really like Kotlin's alternative to ternary operators here. Python's makes me a little nauseous - foo = something if condition else something_else aaaaaugh

wenxi-zeng
wenxi-zeng previously approved these changes Nov 22, 2024
@MichaelGHSeg MichaelGHSeg merged commit c3bea1c into main Nov 22, 2024
9 checks passed
@MichaelGHSeg MichaelGHSeg deleted the MichaelGHSeg/telemetry_plugin_name branch November 22, 2024 18:27
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