Skip to content

Commit

Permalink
[improve] Added webrequest helper to match multiple
Browse files Browse the repository at this point in the history
  • Loading branch information
gboddin committed May 23, 2021
1 parent 4d13559 commit 673d0a6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions l9plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,12 @@ func (request *WebPluginRequest) GetHash() string {
func (request *WebPluginRequest) Equal(testRequest WebPluginRequest) bool {
return request.GetHash() == testRequest.GetHash()
}

func (request *WebPluginRequest) EqualAny(testRequests []WebPluginRequest) bool {
for _, testRequest := range testRequests {
if request.GetHash() == testRequest.GetHash() {
return true
}
}
return false
}

0 comments on commit 673d0a6

Please sign in to comment.