about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:22:46 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-25 00:22:46 +0100
commit44c5958203dd8d0f96f880a8014a3233719077a6 (patch)
treebfea06ab48438e6431a45d130825179d9fa1f6e9 /app/services
parent71fe24096c612996cb2a827c919a4c88ae1e3495 (diff)
Fixed small bugs and code style offences
Diffstat (limited to 'app/services')
-rw-r--r--app/services/follow_remote_account_service.rb2
-rw-r--r--app/services/process_feed_service.rb6
-rw-r--r--app/services/process_interaction_service.rb2
3 files changed, 5 insertions, 5 deletions
diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb
index de2ca6e75..8e0199134 100644
--- a/app/services/follow_remote_account_service.rb
+++ b/app/services/follow_remote_account_service.rb
@@ -45,7 +45,7 @@ class FollowRemoteAccountService < BaseService
     end
 
     return account
-  rescue Goldfinger::Error, HTTP::Error => e
+  rescue Goldfinger::Error, HTTP::Error
     nil
   end
 
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index 210de8cdb..6ce74e32d 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -28,7 +28,7 @@ class ProcessFeedService < BaseService
 
   private
 
-  def add_post!(entry, status)
+  def add_post!(_entry, status)
     status.save!
   end
 
@@ -47,7 +47,7 @@ class ProcessFeedService < BaseService
     status.save!
   end
 
-  def find_original_status(xml, id)
+  def find_original_status(_xml, id)
     return nil if id.nil?
 
     if local_id?(id)
@@ -96,7 +96,7 @@ class ProcessFeedService < BaseService
   end
 
   def activity_id(xml)
-    entry.at_xpath('./xmlns:id').content
+    xml.at_xpath('./xmlns:id').content
   end
 
   def target_content(xml)
diff --git a/app/services/process_interaction_service.rb b/app/services/process_interaction_service.rb
index 3a8332118..7bd813c0e 100644
--- a/app/services/process_interaction_service.rb
+++ b/app/services/process_interaction_service.rb
@@ -68,7 +68,7 @@ class ProcessInteractionService < BaseService
   end
 
   def status(xml)
-    Status.find(unique_tag_to_local_id(activity_id, 'Status'))
+    Status.find(unique_tag_to_local_id(activity_id(xml), 'Status'))
   end
 
   def activity_id(xml)