Fix Security/CompoundHash offences
This commit is contained in:
parent
f5dc7a571f
commit
2ea7454efa
@ -37,7 +37,7 @@ class Dependency
|
|||||||
alias eql? ==
|
alias eql? ==
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
name.hash ^ tags.hash
|
[name, tags].hash
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_formula
|
def to_formula
|
||||||
|
|||||||
@ -52,6 +52,6 @@ class PkgVersion
|
|||||||
alias eql? ==
|
alias eql? ==
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
version.hash ^ revision.hash
|
[version, revision].hash
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -122,7 +122,7 @@ class Requirement
|
|||||||
alias eql? ==
|
alias eql? ==
|
||||||
|
|
||||||
def hash
|
def hash
|
||||||
name.hash ^ tags.hash
|
[name, tags].hash
|
||||||
end
|
end
|
||||||
|
|
||||||
sig { returns(String) }
|
sig { returns(String) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user