Skip to content

Commit

Permalink
[R][BACKPORT-2.2] backport lint fix
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

backport part of the commit that addresses lintr issue

Author: Felix Cheung <felixcheung_m@hotmail.com>

Closes apache#21325 from felixcheung/rlintfix22.
  • Loading branch information
felixcheung authored and MatthewRBruce committed Jul 31, 2018
1 parent 0252fd0 commit c5012f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/pkg/R/sparkR.R
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ sparkR.sparkContext <- function(

# Don't use readString() so that we can provide a useful
# error message if the R and Java versions are mismatched.
authSecretLen = readInt(f)
authSecretLen <- readInt(f)
if (length(authSecretLen) == 0 || authSecretLen == 0) {
stop("Unexpected EOF in JVM connection data. Mismatched versions?")
}
Expand Down

0 comments on commit c5012f7

Please sign in to comment.