Skip to content

Commit 7c733cf

Browse files
failed refactor to helper
1 parent 509af42 commit 7c733cf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/bmerge.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ coerce_col = function(dt, col, from_type, to_type, from_name, to_name, from_deta
2929
.known_time_classes = c("Date", "POSIXt", "ITime", "times", "nanotime")
3030
# nolint next: object_length_linter.
3131
.maybe_warn_mismatched_time_types = function(x_class, i_class, x_name, i_name) {
32-
x_class_time = intersect(class(x[[xcol]]), .known_time_classes)
32+
x_class_time = intersect(x_class, .known_time_classes)
3333
if (!length(x_class_time)) return(invisible())
3434

35-
i_class_time = intersect(class(i[[icol]]), .known_time_classes)
35+
i_class_time = intersect(i_class, .known_time_classes)
3636
if (!length(i_class_time)) return(invisible())
3737

3838
if (identical(x_class_time, i_class_time)) return(invisible())

0 commit comments

Comments
 (0)