lib/ddr/antivirus/adapters/null_scanner_adapter.rb in ddr-antivirus-1.1.0 vs lib/ddr/antivirus/adapters/null_scanner_adapter.rb in ddr-antivirus-1.2.0

- old
+ new

@@ -4,14 +4,11 @@ # # The NullScannerAdapter provides a no-op adapter, primarily for testing and development. # class NullScannerAdapter < ScannerAdapter - RESULT = "File not scanned -- using :null scanner adapter." - def scan(path) - Ddr::Antivirus.logger.warn(RESULT) - Ddr::Antivirus::ScanResult.new(RESULT, path) + Ddr::Antivirus::ScanResult.new("#{path}: NOT SCANNED - using :null scanner adapter.", path) end end end end