Commit 93fb4ce2 authored by tiagonbotelho's avatar tiagonbotelho Committed by Yorick Peterse

removes redundant self

parent 4b3f3167
...@@ -89,7 +89,7 @@ class Project < ActiveRecord::Base ...@@ -89,7 +89,7 @@ class Project < ActiveRecord::Base
# checks if the language main language of the project changed # checks if the language main language of the project changed
before_save :check_main_language before_save :check_main_language
def check_main_language def check_main_language
if self.commit_count_changed? if commit_count_changed?
self.main_language = repository.main_language self.main_language = repository.main_language
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment