Skip to content

Commit 1f8259d

Browse files
committed
Merge pull request angular-ui#1647 from humzashah/combined-guard-clauses
combined 2 guard clauses
2 parents a8e7932 + 4a76f1d commit 1f8259d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/coffee/utils/array-sync.coffee

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ angular.module('uiGmapgoogle-maps').factory 'uiGmaparray-sync', [
4646
set_at: (index) ->
4747
return if isSetFromScope #important to avoid cyclic forever change loop watch to map event change and back
4848
value = mapArray.getAt(index)
49-
return unless value
50-
return if not value.lng or not value.lat
49+
return unless value and value.lng and value.lat
5150
geojsonArray[index][1] = value.lat()
5251
geojsonArray[index][0] = value.lng()
5352

0 commit comments

Comments
 (0)