Skip to content

Commit

Permalink
fixed geopos function
Browse files Browse the repository at this point in the history
  • Loading branch information
boltunov-am committed Jul 13, 2016
1 parent ef000bb commit bbf88ba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,4 @@ build/Release
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules

dump.rdb

.vs
bin
obj
node-georedis.njsproj
node-georedis.sln
dump.rdb
2 changes: 1 addition & 1 deletion lib/interfaceNative.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ NativeInterface.prototype.geopos = function(member, zSetName, callBack) {
if (err) {
callBack(err, null);
} else {
if (results.length > 0) {
if (results.length > 0 && results[0]) {
location = {
latitude: results[0][1],
longitude: results[0][0]
Expand Down

0 comments on commit bbf88ba

Please sign in to comment.