Skip to content

Commit 6b8feaf

Browse files
committed
Type conversion
1 parent 50e7d80 commit 6b8feaf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/auxiliary/gather/corpwatch_lookup_id.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def run
5858

5959
loot = ""
6060
uri = "/"
61-
uri << (datastore['YEAR']) if datastore['YEAR'] != ""
61+
uri << (datastore['YEAR']).to_s if datastore['YEAR'].to_s != ""
6262
uri << ("/companies/" + datastore['CW_ID'])
6363

6464
res = send_request_cgi({

modules/auxiliary/gather/corpwatch_lookup_name.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def run
5656
datastore['RPORT'] = 80
5757

5858
uri = "/"
59-
uri << (datastore['YEAR'] + "/") if datastore['YEAR'] != ""
59+
uri << (datastore['YEAR'].to_s + "/") if datastore['YEAR'].to_s != ""
6060
uri << "companies.xml"
6161

6262
res = send_request_cgi(

0 commit comments

Comments
 (0)