Skip to content

Commit 871fee3

Browse files
Return an empty list with <lints> class in addin (#2557)
1 parent 6a0342e commit 871fee3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

R/addins.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ addin_lint <- function() {
55
}
66
filename <- rstudioapi::getSourceEditorContext()
77
if (filename$path == "") {
8-
return("Current source has no path. Please save before continue")
8+
warning("Current source has no path. Please save before continuing.", call. = FALSE)
9+
return(flatten_lints(list()))
910
}
1011

1112
lint(filename$path)

0 commit comments

Comments
 (0)