temoto / robotstxt

The robots.txt exclusion protocol implementation for Go language
MIT License
269 stars 55 forks source link

Removed duplication of code when finding a rule #13

Closed ujjwalt closed 9 years ago

ujjwalt commented 9 years ago

We removed a duplicate snippet with a call to the Test() function. I think I am right?

temoto commented 9 years ago

Hello. Thank you very much for noticing it. Turns out a larger block of code could be removed since FindGroup never returns nil. I've done it in https://github.com/temoto/robotstxt-go/commit/c51489e759bca7dc60d42334436d7fc46b1e96cb and noted your help in commit message.