From 3d8927b9908b2aa2ea790f5daf728f90b915ac7c Mon Sep 17 00:00:00 2001
From: gxbe <triumph@hushmail.com>
Date: Mon, 27 Jan 2014 23:00:12 -0500
Subject: [PATCH] reduced duplication

---
 lib/geocoder/lookups/maxmind_local.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/geocoder/lookups/maxmind_local.rb b/lib/geocoder/lookups/maxmind_local.rb
index 7213ca80..465c3614 100644
--- a/lib/geocoder/lookups/maxmind_local.rb
+++ b/lib/geocoder/lookups/maxmind_local.rb
@@ -6,7 +6,7 @@ module Geocoder::Lookup
 
     def initialize
       begin
-        require (RUBY_PLATFORM == java ? 'jgeoip' : 'geoip')
+        require (RUBY_PLATFORM == 'java' ? 'jgeoip' : 'geoip')
       rescue LoadError => e
         raise 'Could not load geoip dependency. To use MaxMind Local lookup you must add geoip gem to your Gemfile or have it installed in your system.'
       end
-- 
GitLab