Remove unused variable.

Remove unused variable.

From 565603ad0d0a348962708d01a473bf85283ee730 Mon Sep 17 00:00:00 2001
From: Guo Xiang Tan <tgx_world@hotmail.com>
Date: Mon, 26 Nov 2018 14:45:00 +0800
Subject: [PATCH] Remove unused variable.


diff --git a/lib/cooked_post_processor.rb b/lib/cooked_post_processor.rb
index 5b8391f..ac33757 100644
--- a/lib/cooked_post_processor.rb
+++ b/lib/cooked_post_processor.rb
@@ -21,9 +21,8 @@ class CookedPostProcessor
     @cooking_options[:topic_id] = post.topic_id
     @cooking_options = @cooking_options.symbolize_keys
 
-    analyzer = post.post_analyzer
     @doc = Nokogiri::HTML::fragment(post.cook(post.raw, @cooking_options))
-    @has_oneboxes = analyzer.found_oneboxes?
+    @has_oneboxes = post.post_analyzer.found_oneboxes?
     @size_cache = {}
   end

GitHub

1 Like