Skip to content

Commit

Permalink
add missing badge url
Browse files Browse the repository at this point in the history
* update code for config settings
  • Loading branch information
msimerson committed Oct 7, 2016
1 parent f8535b3 commit e14de7c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@
"one-var": [2, "never"],
"no-trailing-spaces": [2, { "skipBlankLines": false }],
"keyword-spacing": [2, {
"after": true,
"overrides": {},
}],
"overrides": { },
"before": true,
"after": true
}],
"no-delete-var": 2,
"no-label-var": 2,
"no-shadow": 2,
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,4 +115,5 @@ Databases: http://geolite.maxmind.com/download/geoip/database
[cov-url]: https://codecov.io/github/haraka/haraka-plugin-geoip
[clim-img]: https://codeclimate.com/github/haraka/haraka-plugin-geoip/badges/gpa.svg
[clim-url]: https://codeclimate.com/github/haraka/haraka-plugin-geoip
[npm-img]: https://nodei.co/npm/haraka-plugin-geoip.png
[npm-img]: https://nodei.co/npm/haraka-plugin-geoip.png
[npm-url]: https://www.npmjs.com/package/haraka-plugin-geoip
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,11 @@ exports.lookup_maxmind = function (next, connection) {
}
if (loc.city && loc.city !== '--') {
connection.results.add(plugin, {city: loc.city});
if (plugin.cfg.main.show_city) show.push(loc.city);
if (plugin.cfg.show.city) show.push(loc.city);
}
if (loc.region && loc.region !== '--') {
connection.results.add(plugin, {region: loc.region});
if (plugin.cfg.main.show_region) show.push(loc.region);
if (plugin.cfg.show.region) show.push(loc.region);
}
if (loc.latitude) {
connection.results.add(plugin, {ll: [loc.latitude, loc.longitude]});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"test": "./run_tests",
"lint": "eslint index.js",
"lint": "./node_modules/.bin/eslint index.js test/*.js",
"coverage": "./node_modules/.bin/istanbul cover ./run_tests"
},
"repository": {
Expand Down

0 comments on commit e14de7c

Please sign in to comment.