(SyntaxError) (ruby filter code):30: syntax error, unexpected end-of-file

if event.get(‘srcip’)
srcip = event.get(‘srcip’)
else
srcip = ‘’
end
if event.get(‘poluuid’)
poluuid = event.get(‘poluuid’)
else
poluuid = ‘’
end

  		params = { :hash_pair => [ 'srcip' + '-' + srcip, 'poluuid' + '-' + poluuid] }
  		uri.query = URI.encode_www_form( params )

Is there anything wrong in my code? thank you.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs