Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Sep 16, 2024
1 parent 72492e5 commit a6096dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/api.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ target_post_dataset <- function(req, res) {

if (suppressWarnings(all(is.na(as.numeric(file_body[, xcol]))))) {
xtype <- "date"
suppressWarnings({file_body[, xcol] <- parse_date(file_body[, xcol])})
suppressWarnings({
file_body[, xcol] <- parse_date(file_body[, xcol])
})
if (all(is.na(file_body[, xcol]))) {
res$status <- 400L
msg <- paste("Invalid x column values:",
Expand Down

0 comments on commit a6096dd

Please sign in to comment.