Since putting code in an "if true" block is unusual, make it easier
for readers to understand the purpose of doing this.
For #73998.
Change-Id: I3fd8d65130211c7c01d424366a3c662482d80add
Reviewed-on: https://go-review.googlesource.com/c/go/+/702416
Reviewed-by: Alan Donovan <adonovan@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
// This code path isn't currently needed
// because FileSet never updates an existing entry.
// Remove this assertion if things change.
- if true {
+ if true { // defeat vet's unreachable pass
panic("unreachable according to current FileSet requirements")
}
x.file = file
// This code path isn't currently needed because FileSet
// only calls delete after a positive locate.
// Remove this assertion if things change.
- if true {
+ if true { // defeat vet's unreachable pass
panic("unreachable according to current FileSet requirements")
}
return
defer func() {
ret = recover()
}()
- if true {
+ if true { // defeat vet's unreachable pass
panic(nil)
}
return "should not return"