Browse Source

modified tlsh_simple_hash: error to warning

master
boB Rudis 6 years ago
parent
commit
fdb3bac05c
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 4
      R/tlsh-hash.R

4
R/tlsh-hash.R

@ -6,6 +6,10 @@
#' @param x length 1 `character` or `raw` vector
#' @export
tlsh_simple_hash <- function(x) {
if (is.na(x) | is.null(x)) {
warning("Invalid byte stream")
return(NA_character_)
}
if (inherits(x, "character")) {
x <- x[1]
if (nchar(x) < 50L) {

Loading…
Cancel
Save