Skip to content

Commit 3d6faed

Browse files
committed
check identical first before is.na
1 parent 8f4b446 commit 3d6faed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/repository.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ DESCfieldExistsAttr <- function(pkgList, reposRootPath, field) {
458458
result <- file.exists(file)
459459
if (result) {
460460
field <- as.character(read.dcf(file, fields = field))
461-
result <- !is.na(field) && identical(length(field), 1L)
461+
result <- identical(length(field), 1L) && !is.na(field)
462462
}
463463
result
464464
}, logical(1L)

0 commit comments

Comments
 (0)