lib/headdesk/apk.rb in headdesk-0.8.0 vs lib/headdesk/apk.rb in headdesk-0.9.0
- old
+ new
@@ -62,11 +62,12 @@
def min_sdk(gt_eq)
min_sdk_version >= gt_eq
end
+ # :reek:NilCheck
def class?(decl)
- find_class(decl) != false
+ !find_class(decl).nil?
end
def find_class(decl)
file_name = File.join(@path, 'smali', "#{Class.path_for(decl)}.smali")
return nil unless File.exist? file_name