Change a comparison with 'undefined' to use angular.isUndefined()
This fixes a violation of the angular es lint rule 'ng_definedundefined' Change-Id: I5e8451d61d137afa73030e44ce575ec4f742b47f Partially-Implements: blueprint jscs-cleanup
This commit is contained in:
parent
a385be24f5
commit
a32b959183
@ -136,7 +136,7 @@
|
||||
|
||||
// Convenience function to return a sensible value instead of undefined
|
||||
function defaultIfUndefined(value, defaultValue) {
|
||||
return (value === undefined) ? defaultValue : value;
|
||||
return (angular.isUndefined(value)) ? defaultValue : value;
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user