Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unused param honestMeasurements #443

Merged
merged 1 commit into from
Jan 9, 2025
Merged

Conversation

bajtos
Copy link
Member

@bajtos bajtos commented Jan 9, 2025

Discovered while working on #442

{ ...VALID_MEASUREMENT, participantAddress: '0x10' },
{ ...VALID_MEASUREMENT, participantAddress: '0x10' },
{ ...VALID_MEASUREMENT, participantAddress: '0x20' }
]
await updatePlatformStats(pgClient, honestMeasurements)
await updatePlatformStats(pgClient, allMeasurements)
Copy link
Member Author

Choose a reason for hiding this comment

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

updatePlatformStats is defined here:

/**
* @param {import('pg').Client} pgClient
* @param {import('./preprocess.js').Measurement[]} allMeasurements
*/
export const updatePlatformStats = async (pgClient, allMeasurements) => {

Copy link
Member

@juliangruber juliangruber left a comment

Choose a reason for hiding this comment

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

Nice one! I discovered this before as well, but was always too lazy for the clean up 👏

@bajtos bajtos merged commit 42f22d6 into main Jan 9, 2025
6 checks passed
@bajtos bajtos deleted the remove-unused-param branch January 9, 2025 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ done
Development

Successfully merging this pull request may close these issues.

2 participants