Skip to content

Commit

Permalink
refactor(backend): make some functions private
Browse files Browse the repository at this point in the history
  • Loading branch information
fengelniederhammer committed Dec 4, 2023
1 parent aff7cd1 commit 4e7b233
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ class SequenceValidator(
}
}

fun validateType(fieldValue: JsonNode, metadata: Metadata) {
private fun validateType(fieldValue: JsonNode, metadata: Metadata) {
if (fieldValue.isNull) {
return
}
Expand Down Expand Up @@ -178,7 +178,7 @@ class SequenceValidator(
}
}

fun isValidDate(dateStringCandidate: String): Boolean {
private fun isValidDate(dateStringCandidate: String): Boolean {
val formatter = DateTimeFormatter.ofPattern(DATE_FORMAT)
return try {
LocalDate.parse(dateStringCandidate, formatter)
Expand All @@ -188,7 +188,7 @@ class SequenceValidator(
}
}

fun isValidPangoLineage(pangoLineageCandidate: String): Boolean {
private fun isValidPangoLineage(pangoLineageCandidate: String): Boolean {
return pangoLineageCandidate.matches(pangoLineageRegex)
}

Expand Down

0 comments on commit 4e7b233

Please sign in to comment.