Skip to content

Commit

Permalink
Type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
wchen-r7 committed Aug 26, 2013
1 parent 50e7d80 commit 6b8feaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/corpwatch_lookup_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def run

loot = ""
uri = "/"
uri << (datastore['YEAR']) if datastore['YEAR'] != ""
uri << (datastore['YEAR']).to_s if datastore['YEAR'].to_s != ""
uri << ("/companies/" + datastore['CW_ID'])

res = send_request_cgi({
Expand Down
2 changes: 1 addition & 1 deletion modules/auxiliary/gather/corpwatch_lookup_name.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run
datastore['RPORT'] = 80

uri = "/"
uri << (datastore['YEAR'] + "/") if datastore['YEAR'] != ""
uri << (datastore['YEAR'].to_s + "/") if datastore['YEAR'].to_s != ""
uri << "companies.xml"

res = send_request_cgi(
Expand Down

0 comments on commit 6b8feaf

Please sign in to comment.