(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.