Signed-off-by: Colin Kelley --- lib/uri/generic.rb | 1 +++--------------------- 1 file changed, 3 insertions(+), 1 deletions(-) diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb index 5c134e59..5d06057 100644 --- a/lib/uri/generic.rb +++ b/lib/uri/generic.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + # = uri/generic.rb # # Author:: Akira Yamada @@ -1339,7 +1341,7 @@ def normalize! # Constructs String from URI # def to_s - str = '' + str = String.new if @scheme str << @scheme str << ':'.freeze