From 84d553555e2b77239feff85b3d48dab307d0e4ab Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Sun, 27 Aug 2017 18:55:18 +0200 Subject: [PATCH] Remove unneeded .freeze closes #7595 --- Changelog.md | 1 + lib/connection_tester.rb | 4 ++-- lib/diaspora/exporter.rb | 5 +---- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Changelog.md b/Changelog.md index fecfefd4e..72b65b776 100644 --- a/Changelog.md +++ b/Changelog.md @@ -10,6 +10,7 @@ * Remove auto detection of languages with highlightjs [#7591](https://github.com/diaspora/diaspora/pull/7591) * Move enable/disable notification icon [#7592](https://github.com/diaspora/diaspora/pull/7592) * Use Bootstrap 3 progress-bar for polls [#7600](https://github.com/diaspora/diaspora/pull/7600) +* Enable frozen string literals [#7595](https://github.com/diaspora/diaspora/pull/7595) ## Bug fixes * Fix displaying polls with long answers [#7579](https://github.com/diaspora/diaspora/pull/7579) diff --git a/lib/connection_tester.rb b/lib/connection_tester.rb index 191d2414b..5bc58d75b 100644 --- a/lib/connection_tester.rb +++ b/lib/connection_tester.rb @@ -4,8 +4,8 @@ class ConnectionTester include Diaspora::Logging - NODEINFO_SCHEMA = "http://nodeinfo.diaspora.software/ns/schema/1.0".freeze - NODEINFO_FRAGMENT = "/.well-known/nodeinfo".freeze + NODEINFO_SCHEMA = "http://nodeinfo.diaspora.software/ns/schema/1.0" + NODEINFO_FRAGMENT = "/.well-known/nodeinfo" class << self # Test the reachability of a server by the given HTTP/S URL. diff --git a/lib/diaspora/exporter.rb b/lib/diaspora/exporter.rb index 66caf93ab..cbdecc10d 100644 --- a/lib/diaspora/exporter.rb +++ b/lib/diaspora/exporter.rb @@ -5,10 +5,8 @@ # the COPYRIGHT file. module Diaspora - class Exporter - - SERIALIZED_VERSION = "2.0".freeze + SERIALIZED_VERSION = "2.0" def initialize(user) @user = user @@ -26,5 +24,4 @@ module Diaspora .merge(Export::OthersDataSerializer.new(@user).as_json) end end - end