Skip to content

Commit 5268624

Browse files
committed
warning
1 parent 1ad5bc9 commit 5268624

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jruby_art/runner.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,8 @@ def show_help
152152

153153
def show_version
154154
require 'erb'
155-
WARNING = 'WARNING: JDK8 is preferred'
156-
warn WARNING unless ENV_JAVA['java.specification.version'] == '1.8'
155+
warning = 'WARNING: JDK8 is preferred'.freeze
156+
warn warning unless ENV_JAVA['java.specification.version'] == '1.8'
157157
template = ERB.new <<-EOF
158158
JRubyArt version <%= JRubyArt::VERSION %>
159159
Ruby version <%= RUBY_VERSION %>

0 commit comments

Comments
 (0)