Skip to content

Commit

Permalink
Merge pull request #1040 from ninoseki/v7.3.1
Browse files Browse the repository at this point in the history
V7.3.1
  • Loading branch information
ninoseki authored Jan 21, 2024
2 parents 7676477 + 9763b9b commit a935c53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions lib/mihari/rule.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ def initialize(**data)
# @return [Boolean]
#
def errors?
return false if @errors.nil?
return false if errors.nil?

!@errors.empty?
!errors.empty?
end

def [](key)
Expand Down Expand Up @@ -163,9 +163,7 @@ def normalized_artifacts
# @return [Array<Mihari::Models::Artifact>]
#
def unique_artifacts
normalized_artifacts.select do |artifact|
artifact.unique?(base_time: base_time, artifact_ttl: artifact_ttl)
end
normalized_artifacts.select { |artifact| artifact.unique?(base_time: base_time, artifact_ttl: artifact_ttl) }
end

#
Expand Down Expand Up @@ -337,9 +335,10 @@ def serial_analyzers

# @return [Array<Dry::Monads::Result::Success<Array<Mihari::Models::Artifact>>, Dry::Monads::Result::Failure>]
def analyzer_results
parallel_results = Parallel.map(parallel_analyzers, &:result)
serial_results = serial_analyzers.map(&:result)
parallel_results + serial_results
[].tap do |out|
out << Parallel.map(parallel_analyzers, &:result)
out << serial_analyzers.map(&:result)
end.flatten
end

#
Expand Down
2 changes: 1 addition & 1 deletion lib/mihari/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module Mihari
VERSION = "7.3.0"
VERSION = "7.3.1"
end

0 comments on commit a935c53

Please sign in to comment.