DEV: Remove 'diff local changes' when updating remote themes (#11247)

Since 65e123498b, it is now impossible to make local changes to remote themes, so this warning is not needed.
This commit is contained in:
David Taylor
2020-11-16 19:28:12 +00:00
committed by GitHub
parent 5e553c11e3
commit 475b4892e3
7 changed files with 3 additions and 100 deletions
-15
View File
@@ -200,21 +200,6 @@ class RemoteTheme < ActiveRecord::Base
end
end
def diff_local_changes
return unless is_git?
importer = ThemeStore::GitImporter.new(remote_url, private_key: private_key, branch: branch)
begin
importer.import!
rescue RemoteTheme::ImportError => err
{ error: err.message }
else
changes = importer.diff_local_changes(self.id)
return nil if changes.blank?
{ diff: changes }
end
end
def normalize_override(hex)
return unless hex