about summary refs log tree commit diff
path: root/spec/lib/hash_object_spec.rb
diff options
context:
space:
mode:
authorRenato "Lond" Cerqueira <renato@lond.com.br>2018-03-08 02:25:10 +0100
committerEugen Rochko <eugen@zeonfederated.com>2018-03-08 02:25:10 +0100
commit9aba44ea79c4c1bd21e9232b65f3cf1a9736c6cc (patch)
tree8cbe2459ee09f3ce894c7fddc27c6f578b6618c6 /spec/lib/hash_object_spec.rb
parent6dcf96271ee5b81ecb910f80f8218bb2a9b1b404 (diff)
Rescue when there's no extension in the remotable (#6358)
* Rescue when there's no extension in the remotable
Sometimes the remotable is pointing to a directory with no file
extension. Maybe it should not be expecting to identify based on
extensions to begin with, but since it's the case, it should be ready
for it.

* Fix codeclimate issue

* Check if filename is nil instead of rescueing exception
Suggestion made in the PR

* Avoid concatenation issue if filename is nil
If filename is nil, extname was undefined

* Invert condition
Address PR comments
Diffstat (limited to 'spec/lib/hash_object_spec.rb')
0 files changed, 0 insertions, 0 deletions