diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 53b5117..d0d6baf 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,7 +2,7 @@ # R specific hooks: https://github.com/lorenzwalthert/precommit repos: - repo: https://github.com/lorenzwalthert/precommit - rev: v0.3.2.9001 + rev: v0.4.3.9020 hooks: - id: style-files args: [--style_pkg=styler, --style_fun=tidyverse_style] @@ -48,7 +48,7 @@ repos: - id: deps-in-desc args: [--allow_private_imports] - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v6.0.0 hooks: - id: check-added-large-files args: ['--maxkb=200'] @@ -57,7 +57,7 @@ repos: - id: end-of-file-fixer exclude: '\.Rd' - repo: https://github.com/pre-commit-ci/pre-commit-ci-config - rev: v1.5.1 + rev: v1.6.1 hooks: # Only reuiqred when https://pre-commit.ci is used for config validation - id: check-pre-commit-ci-config diff --git a/R/user.R b/R/user.R index bdae002..2172778 100644 --- a/R/user.R +++ b/R/user.R @@ -50,12 +50,10 @@ simplify_membership <- function(membership) { if (!all(is.na(membership))) { membership <- membership %>% map_dfr(function(m) { - if (is.null(m$hourlyRate)) { - } else { + if (is.null(m$hourlyRate)) {} else { m$hourlyRate <- list(as_tibble(m$hourlyRate)) } - if (is.null(m$costRate)) { - } else { + if (is.null(m$costRate)) {} else { m$costRate <- list(as_tibble(m$costRate)) } m diff --git a/R/util.R b/R/util.R index 862b347..f145df0 100644 --- a/R/util.R +++ b/R/util.R @@ -9,7 +9,7 @@ list_null_to_na_flat <- function(l) { #' @param nested Is this a list of lists? #' @return A list of lists. #' @noRd -list_null_to_na <- function(l, nested=TRUE) { +list_null_to_na <- function(l, nested = TRUE) { # nocov start if (nested) { map(l, list_null_to_na_flat)