Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Simplifying twitter connection code.

  • Loading branch information...
commit 47dd1acd0cbd4cae5c49ab79c918f411f621aebf 1 parent 630b49e
@jqr jqr authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/snitch/services/twitter.rb
View
5 lib/snitch/services/twitter.rb
@@ -8,9 +8,8 @@ def initialize(attributes = {})
super({ :message_length => :short }.merge(attributes))
end
- def connection(force=false)
- @twitter = ::Twitter::Base.new(login, password) if @twitter.nil? || force
- @twitter
+ def connection
+ ::Twitter::Base.new(login, password)
end
def tattle(message)
Please sign in to comment.
Something went wrong with that request. Please try again.