Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drcapulet committed Nov 23, 2009
1 parent e26f4a9 commit 89509bd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/shorty/bitly.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ def stats(urlorhash)

def gsub_url(shorturl)
shorturl.split('/').last
# shorturl = shorturl.gsub(/http:\/\//, '') if shorturl.include?('http://')
# shorturl = shorturl.gsub(/bit.ly\//, '') if shorturl.include?('bit.ly/')
end

def raise_error(hash)
Expand Down
2 changes: 1 addition & 1 deletion lib/shorty/cligs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def expand(urlorhash)

def raise_error(code, message = '(no error message)')
error = message + " (error code: #{code})"
raise Shorty::Bitly::Error, error
raise Shorty::Cligs::Error, error
end

end
Expand Down

0 comments on commit 89509bd

Please sign in to comment.