From e2ccbd4e2c33988eba37137a3d4a185ed94e0e61 Mon Sep 17 00:00:00 2001 From: Jamil Bou Kheir Date: Sat, 5 Feb 2022 20:23:10 -0800 Subject: [PATCH] disable frozen string literals --- omnibus/cookbooks/firezone/libraries/config.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/omnibus/cookbooks/firezone/libraries/config.rb b/omnibus/cookbooks/firezone/libraries/config.rb index 175103d0f..8c646fe2f 100644 --- a/omnibus/cookbooks/firezone/libraries/config.rb +++ b/omnibus/cookbooks/firezone/libraries/config.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: true +# frozen_string_literal: false require 'json' require 'fileutils' @@ -175,8 +175,7 @@ class Firezone # If the value is a String or Number and the attribute name is attr_name. # Used to write out environment variables to a file. def self.environment_variables_from(attributes) - acc = '' - attributes.reduce acc do |str, attr| + attributes.reduce '' do |str, attr| str << if attr[1].is_a?(String) || attr[1].is_a?(Numeric) || attr[1] == true || attr[1] == false "export #{attr[0].upcase}=\"#{attr[1]}\"\n" else