Skip to content

Commit

Permalink
Fix RuboCop issue
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rodríguez committed Dec 10, 2015
1 parent 14dc407 commit 35ce7bf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Expand Up @@ -6,12 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: AllowSafeAssignment.
Lint/AssignmentInCondition:
Exclude:
- 'ext/geos_c_impl/extconf.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
Expand Down
4 changes: 3 additions & 1 deletion ext/geos_c_impl/extconf.rb
Expand Up @@ -12,7 +12,9 @@ def create_dummy_makefile
else
require "mkmf"

if geosconfig = (with_config("geos-config") || find_executable("geos-config"))
geosconfig = with_config("geos-config") || find_executable("geos-config")

if geosconfig
puts "Using GEOS compile configuration from %s" [geosconfig]
$INCFLAGS << " " << `#{geosconfig} --cflags`.strip
geos_libs = `#{geosconfig} --clibs`.tr("\n", " ")
Expand Down

0 comments on commit 35ce7bf

Please sign in to comment.