Skip to content

Commit ce0a887

Browse files
committed
freeze constants in search parser
1 parent e724a29 commit ce0a887

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

search_parser/app.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
require "debug" if S.app_env == "development"
1010

1111
module SearchParser
12-
CATALOG_CONFIG = YAML.safe_load_file("./config/catalog.yaml", aliases: true)
12+
CATALOG_CONFIG = YAML.safe_load_file("./config/catalog.yaml", aliases: true).freeze
1313
CATALOG_BUILDER = MLibrarySearchParser::SearchBuilder.new(CATALOG_CONFIG)
14-
FACETS = CATALOG_CONFIG["facets"]
14+
FACETS = CATALOG_CONFIG["facets"].freeze
1515

1616
def self.build(query)
1717
CATALOG_BUILDER.build(query)

0 commit comments

Comments
 (0)