extend event type matching to uppercase cases

Signed-off-by: Sebastian Schüpbach's avatarSebastian Schüpbach <sebastian.schuepbach@unibas.ch>
parent a7503ca3
Pipeline #20159 passed with stages
in 7 minutes and 37 seconds
......@@ -32,9 +32,9 @@ trait RecordUtils {
}
private def chooseEventType(eventAsString: String): Event = eventAsString match {
case "Create" => Create
case "Update" => Update
case "Delete" => Delete
case "Create" | "CREATE" => Create
case "Update" | "UPDATE" => Update
case "Delete" | "DELETE" => Delete
case s => UnknownEvent(s)
}
......@@ -58,7 +58,7 @@ trait RecordUtils {
protected def isLocalRecord(obj: ujson.Obj, sftpPrefix: String = "sftp:/"): Boolean = {
hasKeyValue(obj, "locator") {
value => value.startsWith(sftpPrefix)
_.startsWith(sftpPrefix)
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment