summaryrefslogtreecommitdiff
path: root/lib/bundler/cli/pristine.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bundler/cli/pristine.rb')
-rw-r--r--lib/bundler/cli/pristine.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/pristine.rb b/lib/bundler/cli/pristine.rb
index 4a411a83fc..532b3e0b5b 100644
--- a/lib/bundler/cli/pristine.rb
+++ b/lib/bundler/cli/pristine.rb
@@ -33,7 +33,7 @@ module Bundler
if extension_cache_path = source.extension_cache_path(spec)
FileUtils.rm_rf extension_cache_path
end
- FileUtils.rm_rf spec.extension_dir if spec.respond_to?(:extension_dir)
+ FileUtils.rm_rf spec.extension_dir
FileUtils.rm_rf spec.full_gem_path
else
Bundler.ui.warn("Cannot pristine #{gem_name}. Gem is sourced from local path.")