Permalink
Browse files

Require user and token. Closes #35

  • Loading branch information...
indirect committed Apr 10, 2011
1 parent 782c3f8 commit 8a201bd312e69a5190cecbec641af409927645db
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/gist.rb
View
@@ -182,7 +182,11 @@ def auth
user = config("github.user")
token = config("github.token")
- user.to_s.empty? ? {} : { :login => user, :token => token }
+ if user.to_s.empty? || token.to_s.empty?
+ {}
+ else
+ { :login => user, :token => token }
+ end
end
# Returns default values based on settings in your gitconfig. See

0 comments on commit 8a201bd

Please sign in to comment.