lib/fluent/plugin/out_sns.rb in fluent-plugin-sns-2.1.4 vs lib/fluent/plugin/out_sns.rb in fluent-plugin-sns-2.1.5

- old
+ new

@@ -42,10 +42,10 @@ @sns = AWS::SNS.new @topic = @sns.topics.find{|topic| @sns_topic_name == topic.name} @subject_template = nil - unless @sns_body_template.nil? + unless @sns_subject_template.nil? template_file = open(@sns_subject_template) @subject_template = ERB.new(template_file.read) template_file.close end