Skip to content

Commit

Permalink
Remove redundant nocov annotations in addins file (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil authored Dec 20, 2022
1 parent 984c18f commit 7657984
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/addins.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# nocov start
addin_lint <- function() {
if (!requireNamespace("rstudioapi", quietly = TRUE)) {
stop("'rstudioapi' is required for add-ins.") # nocov
stop("'rstudioapi' is required for add-ins.")
}
filename <- rstudioapi::getSourceEditorContext()
if (filename$path == "") {
Expand All @@ -27,7 +27,7 @@ addin_lint <- function() {

addin_lint_package <- function() {
if (!requireNamespace("rstudioapi", quietly = TRUE)) {
stop("'rstudioapi' is required for add-ins.") # nocov
stop("'rstudioapi' is required for add-ins.")
}
project <- rstudioapi::getActiveProject()
project_path <- if (is.null(project)) getwd() else project
Expand Down

0 comments on commit 7657984

Please sign in to comment.