Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@KevinMenden
Copy link
Contributor

If we use .keySet().contains() instead of .containsKey(), the problems at https://github.com/nf-core/diaproteomics/pull/103/checks?check_run_id=2167429157 are fixed.

@KevinMenden KevinMenden added this to the 1.13.2 milestone Mar 22, 2021
@KevinMenden
Copy link
Contributor Author

closes #937

@codecov
Copy link

codecov bot commented Mar 22, 2021

Codecov Report

Merging #939 (f15824e) into dev (f67d063) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #939   +/-   ##
=======================================
  Coverage   69.56%   69.56%           
=======================================
  Files          34       34           
  Lines        4173     4173           
=======================================
  Hits         2903     2903           
  Misses       1270     1270           
Impacted Files Coverage Δ
nf_core/lint/nextflow_config.py 69.62% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f67d063...f15824e. Read the comment docs.

Copy link
Member

@ewels ewels left a comment

Choose a reason for hiding this comment

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

Nice!

"params.container",
"params.singleEnd",
"params.igenomesIgnore",
"params.name",
Copy link
Member

Choose a reason for hiding this comment

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

👍🏻

}
}
if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').containsKey(ignore_param)) {
if(rawSchema.keySet().contains('properties') && rawSchema.get('properties').keySet().contains(ignore_param)) {
Copy link
Member

Choose a reason for hiding this comment

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

ah right, yeah if nothing else this looks more consistent too 👍🏻

I guess that we changed the initial call at some point but as we never tested on a pipeline that had ungrouped params we didn't see the failure / didn't update the second call..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I had a feeling this could happen with exactly this part of the code :/

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.

NfcoreSchema.validateParameters JSONObject error

2 participants