Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alturkovic authored Jul 6, 2024
1 parent 0cfe785 commit e0fac51
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ val robotsTxt = RobotsTxtReader.read(inputStream)
val grant = robotsTxt.query("GoogleBot", "/path")
val canAccess = grant.allowed
when(grant) {
is MatchedGrant -> {
val crawlDelay = grant.matchedRuleGroup.crawlDelay
}
is NonMatchedAllowedGrant {
TODO("Not matched in robots.txt")
}
is MatchedGrant -> {
val crawlDelay = grant.matchedRuleGroup.crawlDelay
}
is NonMatchedAllowedGrant -> {
TODO("Not matched in robots.txt")
}
}
```

Expand Down

0 comments on commit e0fac51

Please sign in to comment.