Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

skip copy to clipboard when value is nil.

  • Loading branch information...
commit cc6e97c3c5921cefdfec47eeb9d0c0708c45ecfa 1 parent f03ffaf
@dx7 authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 bin/bitly
View
4 bin/bitly
@@ -41,7 +41,9 @@ class App
protected
def copy_to_clipboard(value)
- system "printf '#{value.strip}' 2> /dev/null | pbcopy 2> /dev/null" if RUBY_PLATFORM[/darwin/]
+ unless value.nil?
+ system "printf '#{value.strip}' 2> /dev/null | pbcopy 2> /dev/null" if RUBY_PLATFORM[/darwin/]
+ end
end
def load_account_data
Please sign in to comment.
Something went wrong with that request. Please try again.