Skip to content

Commit

Permalink
Pass the correct button to the method
Browse files Browse the repository at this point in the history
  • Loading branch information
MancunianSam committed Nov 27, 2024
1 parent a2c638e commit 1f1718a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ object CsvValidatorUi extends SimpleSwingApplication {


btnValidate.reactions += validateOnClick(btnValidate, false)
btnValidateMetadataOnly.reactions += validateOnClick(btnValidate, true)
btnValidateMetadataOnly.reactions += validateOnClick(btnValidateMetadataOnly, true)

private def validateOnClick(button: Button, skipFileChecks: Boolean) = {
val suffix = if(skipFileChecks) " (Metadata Only)" else ""
Expand Down

0 comments on commit 1f1718a

Please sign in to comment.