lib/propono/topic_creator.rb in propono-0.0.1 vs lib/propono/topic_creator.rb in propono-0.1.0

- old
+ new

@@ -12,11 +12,11 @@ def initialize(topic_id) @topic_id = topic_id end def find_or_create - create_topic_result = sns.create_topic(@topic_id) - body = create_topic_result.body + result = sns.create_topic(@topic_id) + body = result.body body.fetch('TopicArn') { raise TopicCreatorError.new("No TopicArn returned from SNS") } end end end