diff options
author | Tim Smith <tsmith84@gmail.com> | 2020-10-30 15:54:48 -0700 |
---|---|---|
committer | Tim Smith <tsmith84@gmail.com> | 2020-10-30 15:54:48 -0700 |
commit | d1da1e4d344f4ac8e2a75a3a86cb3741f6e71fcf (patch) | |
tree | 2f916a1a7d7349bd80ebd1e467cb2dc567df086f /lib/ohai.rb | |
parent | e5ecdfd02cf2a21ef49a16a3551250ad05e922d4 (diff) | |
download | ohai-d1da1e4d344f4ac8e2a75a3a86cb3741f6e71fcf.tar.gz |
Freeze the strings we're not later modifying
There's a few plugins that this couldn't be enabled on due to how we build strings, but for the most part this is an easy one to turn on and it shaves 1k from the runtime memory!
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/ohai.rb')
-rw-r--r-- | lib/ohai.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ohai.rb b/lib/ohai.rb index 040141b0..031dd00c 100644 --- a/lib/ohai.rb +++ b/lib/ohai.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true # # Author:: Adam Jacob (<adam@chef.io>) # Copyright:: Copyright (c) Chef Software Inc. |