From 51b2567504138317bdff42878cfb501186abe544 Mon Sep 17 00:00:00 2001 From: aleksanderbl29 <73799306+aleksanderbl29@users.noreply.github.com> Date: Tue, 10 Dec 2024 17:35:11 +0100 Subject: [PATCH] Ignore some simple lint for styling --- R/dst_date_parse.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/dst_date_parse.R b/R/dst_date_parse.R index 46d9513..20bf80e 100644 --- a/R/dst_date_parse.R +++ b/R/dst_date_parse.R @@ -32,13 +32,13 @@ dst_date_parse <- function(dst_date) { # nolint start all(stringr::str_detect(dst_date, "^[0-9]{4}U(0[1-9]|[1-4][0-9]|5[0-2])$")) && all(stringr::str_length(string = dst_date) == 7) - # nolint end - ) { + ) { # Weekly format # Find year and and week year <- lubridate::ymd(paste0( stringr::str_sub(dst_date, start = 1L, end = 4L), "-01-01")) + # nolint end week <- stringr::str_sub(dst_date, start = -2L)