Skip to content

Commit f154996

Browse files
committed
A little more styling
1 parent d8303bc commit f154996

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cachematrix.R

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,15 @@ makeCacheMatrix <- function(x = matrix()) {
3535
## returns the inverse of the matrix, result is cached after the first run
3636
cacheSolve <- function(x, ...) {
3737
ci <- x$getinverse()
38+
3839
if (!is.null(ci)) {
3940
message("returning inverse matrix from cache")
4041
return(ci)
4142
}
43+
4244
m <- x$get()
4345
ci <- solve(m, ...)
4446
x$setinverse(ci)
47+
4548
ci
4649
}

0 commit comments

Comments
 (0)