Skip to content

Commit

Permalink
style revision
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorbenei committed Nov 6, 2015
1 parent d101329 commit bae5898
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_clone.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def write_private_key_to_file(user_home, auth_ssh_private_key)
#
prepared_repository_url = options[:repo_url]

if options[:auth_ssh_key_raw] and options[:auth_ssh_key_raw].length > 0
if !options[:auth_ssh_key_raw].to_s.empty?
options[:private_key_file_path] = write_private_key_to_file(options[:user_home], options[:auth_ssh_key_raw])
else
# Auth: No Authentication information found - trying without authentication
Expand Down

0 comments on commit bae5898

Please sign in to comment.