Skip to content

Commit cbeb7cb

Browse files
committed
simplify
1 parent 80d2e7e commit cbeb7cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/spell-check.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ as_package <- function(pkg){
7070
if(inherits(pkg, 'package'))
7171
return(pkg)
7272
path <- pkg
73-
description <- if(!file.exists(file.path(path, "DESCRIPTION")) && file.exists(file.path(path, "DESCRIPTION.in"))){
73+
description <- if(file.exists(file.path(path, "DESCRIPTION.in"))){
7474
file.path(path, "DESCRIPTION.in")
7575
} else {
7676
normalizePath(file.path(path, "DESCRIPTION"), mustWork = TRUE)

0 commit comments

Comments
 (0)