Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Align var name to the environment variable name more closely.

  • Loading branch information...
commit b8dd0a5c8c91353b66626b5b03171a16b5e55646 1 parent 4f86b2b
@BanzaiMan BanzaiMan authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/org/jruby/ext/etc/RubyEtc.java
View
8 src/org/jruby/ext/etc/RubyEtc.java
@@ -391,9 +391,9 @@ public static IRubyObject systmpdir(ThreadContext context, IRubyObject recv) {
ByteList tmp = ByteList.create("/tmp"); // default for all platforms except Windows
if (Platform.IS_WINDOWS) {
- String localAppData = System.getenv("CSIDL_COMMON_APPDATA");
+ String commonAppData = System.getenv("CSIDL_COMMON_APPDATA");
// TODO: need fallback mechanism
- if (localAppData != null) tmp = ByteList.create(localAppData);
+ if (commonAppData != null) tmp = ByteList.create(commonAppData);
}
RubyString ret = RubyString.newString(runtime, tmp, runtime.getDefaultExternalEncoding());
ret.untaint(context);
@@ -408,9 +408,9 @@ public static IRubyObject sysconfdir(ThreadContext context, IRubyObject recv) {
ByteList tmp = ByteList.create(RbConfigLibrary.getSysConfDir(runtime)); // default for all platforms except Windows
if (Platform.IS_WINDOWS) {
- String localAppDir = System.getenv("CSIDL_LOCAL_APPDATA");
+ String localAppData = System.getenv("CSIDL_LOCAL_APPDATA");
// TODO: need fallback mechanism
- if (localAppDir != null) tmp = ByteList.create(localAppDir);
+ if (localAppData != null) tmp = ByteList.create(localAppData);
}
RubyString ret = RubyString.newString(runtime, tmp, runtime.getDefaultExternalEncoding());
ret.untaint(context);
Please sign in to comment.
Something went wrong with that request. Please try again.