Skip to content

Commit d5526bc

Browse files
committed
prettier negate arith implementation
1 parent e2a8861 commit d5526bc

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/arith.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@
66

77
setMethod("Arith", signature(e1='Raster', e2='missing'),
88
function(e1, e2){
9-
oper <- as.vector(.Generic)[1]
10-
if (oper == "-") {
11-
e1 <- -1 * e1
12-
}
13-
e1
9+
methods::callGeneric(0, e1)
1410
}
1511
)
1612

0 commit comments

Comments
 (0)