Skip to content

Commit

Permalink
Remove extra vertical whitespace for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
mauricioschneider committed Jul 14, 2015
1 parent 22fc407 commit b8f14ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 17 deletions.
6 changes: 1 addition & 5 deletions lib/agent/providers/geo/darwin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ var join = require('path').join,
var bin = join(__dirname, 'bin', 'whereami');

var get_using_corelocation = function(cb) {

child_process.exec(bin, function(err, out) {
if (err) return cb(err);

Expand All @@ -31,17 +30,14 @@ var get_using_corelocation = function(cb) {
}

cb(null, res);
})

});
}

exports.get_location = function(cb) {

system.get_os_version(function(err, version) {
if (version && gte(version, "10.6.0"))
return get_using_corelocation(cb);

cb(new Error('CoreLocation not suppored in OSX ' + version))
});

}
1 change: 0 additions & 1 deletion lib/agent/providers/geo/linux/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ function get_command_one(provider) {
return [bin, '--print-reply', '--dest=' + service, path, command].join(' ');
}


function geoclue_one(provider, cb) {
var cmd = get_command_one(provider);

Expand Down
17 changes: 6 additions & 11 deletions lib/agent/providers/geo/strategies.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
"use strict"

var join = require('path').join,
needle = require('needle'),
get_agent = require('random-ua').generate,
platform = require(join(__dirname, process.platform)),
providers = require('./../../providers'),
logger = require('../../common').logger.prefix('geo');
needle = require('needle'),
get_agent = require('random-ua').generate,
platform = require(join(__dirname, process.platform)),
providers = require('./../../providers'),
logger = require('../../common').logger.prefix('geo');

function geoip(cb) {

logger.debug("Getting location via geoip");

needle.get('http://ipinfo.io/geo', function(err, resp, body) {
Expand All @@ -25,11 +24,10 @@ function geoip(cb) {
}

cb(null, res);
})
});
}

function google(cb) {

logger.debug("Getting location via google api");

providers.get('access_points_list', function(err, list) {
Expand Down Expand Up @@ -64,7 +62,6 @@ function google(cb) {
}

function process_response(body, cb) {

logger.debug("Processing Google API response");

var coords;
Expand Down Expand Up @@ -93,11 +90,9 @@ function google(cb) {

return cb(null, data);
}

}

function geonative(cb) {

logger.debug("Getting location via native geoloc");

platform.get_location(function(err, res) {
Expand Down

0 comments on commit b8f14ca

Please sign in to comment.