Skip to content

Commit

Permalink
Review response: Using tripple check for checking 'undefined' type
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Nov 22, 2017
1 parent 871c954 commit 71f5fad
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ ManageIQ.angular.app.controller('dialogEditorController', ['$window', '$http', '
}

function showFullyQualifiedName(resourceAction) {
if (typeof resourceAction.ae_namespace == 'undefined' ||
typeof resourceAction.ae_class == 'undefined' ||
typeof resourceAction.ae_instance == 'undefined') {
if (typeof resourceAction.ae_namespace === 'undefined' ||
typeof resourceAction.ae_class === 'undefined' ||
typeof resourceAction.ae_instance === 'undefined') {
return '';
}
var fqname = resourceAction.ae_namespace
Expand Down

0 comments on commit 71f5fad

Please sign in to comment.