[interchange] Early exit from find_options_type if no sku provided

David Christensen <[email protected]> Wed, 14 Jun 2017 19:58:58 +0000
Newsgroups gmane.comp.web.interchange.cvs
Message-ID <[email protected]>
commit 2163a7c222a9b93fc50d925e77770353c186f477
Author: David Christensen <[email protected]>
Date:   Fri Feb 24 16:08:32 2017 -0600

    Early exit from find_options_type if no sku provided

 lib/Vend/Options.pm |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/lib/Vend/Options.pm b/lib/Vend/Options.pm
index 3d0d898..1de47ab 100644
--- a/lib/Vend/Options.pm
+++ b/lib/Vend/Options.pm
@@ -68,6 +68,8 @@ sub find_options_type {
 
 	my $sku = $item->{mv_sku} || $item->{code};
 
+	return unless defined $sku && $sku ne '';
+
 	$opt = get_option_hash($opt);
 
 	my $module;