Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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']
Expand All @@ -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
Expand Down
6 changes: 2 additions & 4 deletions R/user.R
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion R/util.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down