Skip to content

Commit

Permalink
So bad
Browse files Browse the repository at this point in the history
  • Loading branch information
azimov committed Nov 15, 2023
1 parent f627d10 commit 33f8d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/ConceptSets.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ extractConceptSetsSqlFromCohortSql <- function(cohortSql) {
}
sql <- gsub("with primary_events.*", "", cohortSql)

if (is.null(sql) || isTRUE(nchar(sql) < 1) || is.na(nchar(sql)) || is.nan(nchar(sql))) {
if (is.null(sql) || length(nchar(sql)) == 0 || is.na(nchar(sql)) || is.nan(nchar(sql))) {
return(tidyr::tibble())
}
# Find opening and closing parentheses:
Expand Down

0 comments on commit 33f8d02

Please sign in to comment.