Skip to content

Commit 2e944ef

Browse files
committed
Fix ternary operator
Fixes #457
1 parent b2debae commit 2e944ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logstash/outputs/elasticsearch/template_manager.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def self.install(client, template_name, template, template_overwrite)
3030
end
3131

3232
def self.default_template_path(es_major_version)
33-
es_major_version == "1" ? template_version = "2" : template_version = es_major_version
33+
template_version = es_major_version == "1" ? "2" : es_major_version
3434
default_template_name = "elasticsearch-template-es#{template_version}x.json"
3535
::File.expand_path(default_template_name, ::File.dirname(__FILE__))
3636
end

0 commit comments

Comments
 (0)