Skip to content

Commit cfaa84d

Browse files
committed
Remove checks for ENV no longer used in PrimoSearch
1 parent e0f65cb commit cfaa84d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/models/primo_search.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,15 @@ def search(term, per_page, offset = 0)
3434

3535
private
3636

37+
# Validates required environment variables are set
38+
#
39+
# PRIMO_SCOPE and PRIMO_TAB look related by name, but are only used in the links to Primo UI and cannot be the same
40+
# values we use for API calls so are not checked here.
3741
def validate_env
3842
missing_vars = []
3943

4044
missing_vars << 'PRIMO_API_URL' if primo_api_url.nil?
4145
missing_vars << 'PRIMO_API_KEY' if primo_api_key.nil?
42-
missing_vars << 'PRIMO_SCOPE' if primo_scope.nil?
43-
missing_vars << 'PRIMO_TAB' if primo_tab.nil?
4446
missing_vars << 'PRIMO_VID' if primo_vid.nil?
4547

4648
return if missing_vars.empty?

0 commit comments

Comments
 (0)