From 56cc71572ee4c9e35ebd17aaf0d9a8ce149eaf56 Mon Sep 17 00:00:00 2001 From: Shaun Muscat Date: Mon, 16 Nov 2015 14:20:58 +1100 Subject: [PATCH] HCSVLAB-1120: fix redundant check --- app/controllers/collections_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/collections_controller.rb b/app/controllers/collections_controller.rb index bcc9efb6..88b63fe2 100644 --- a/app/controllers/collections_controller.rb +++ b/app/controllers/collections_controller.rb @@ -138,7 +138,7 @@ def web_create_collection @collection_abstract = params[:collection_abstract] @licence_id = params[:licence_id] @additional_metadata = [] - unless params[:additional_key].nil? || params[:additional_key].nil? + unless params[:additional_key].nil? || params[:additional_value].nil? @additional_metadata = params[:additional_key].zip(params[:additional_value]) end if request.post?