diff options
author | 2014-04-24 09:30:04 +0200 | |
---|---|---|
committer | 2014-04-24 09:30:04 +0200 | |
commit | af728fee921f1d1c78b269cd8b485f6965f4bd74 (patch) | |
tree | 498b66cfde5a1271eb1a1c4c7671dcc78ffe426d | |
parent | Typooooooooo (diff) | |
download | glsamaker-af728fee921f1d1c78b269cd8b485f6965f4bd74.tar.gz glsamaker-af728fee921f1d1c78b269cd8b485f6965f4bd74.tar.bz2 glsamaker-af728fee921f1d1c78b269cd8b485f6965f4bd74.zip |
Default token to '' instead of nil
-rw-r--r-- | lib/bugzilla.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bugzilla.rb b/lib/bugzilla.rb index 973c2d7..8734775 100644 --- a/lib/bugzilla.rb +++ b/lib/bugzilla.rb @@ -170,7 +170,7 @@ module Bugzilla client = XMLRPC::Client.new(GLSAMAKER_BUGZIE_HOST, '/xmlrpc.cgi', 443, nil, nil, nil, nil, true) client.http_header_extra = {'User-Agent' => "GLSAMaker/#{GLSAMAKER_VERSION} (http://security.gentoo.org/)"} - token = nil + token = '' token_file = File.join(Rails.root, 'tmp', 'bugzie-token.txt') if File.readable? token_file token = File.read(token_file) |