From 6259caf634ab74f247b278cd27ecb29270a1701a Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Sun, 4 Dec 2016 12:58:33 -0800 Subject: [PATCH] Consistently return a function or undefined --- src/ol/proj/transforms.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/proj/transforms.js b/src/ol/proj/transforms.js index a8a49fee81..4bd86d7ce0 100644 --- a/src/ol/proj/transforms.js +++ b/src/ol/proj/transforms.js @@ -68,10 +68,10 @@ ol.proj.transforms.remove = function(source, destination) { * Get a transform given a source code and a destination code. * @param {string} sourceCode The code for the source projection. * @param {string} destinationCode The code for the destination projection. - * @return {?ol.TransformFunction} The transform function (if found). + * @return {ol.TransformFunction|undefined} The transform function (if found). */ ol.proj.transforms.get = function(sourceCode, destinationCode) { - var transform = null; + var transform; var transforms = ol.proj.transforms.cache_; if (sourceCode in transforms && destinationCode in transforms[sourceCode]) { transform = transforms[sourceCode][destinationCode];