projects
/
dotfiles
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
coc-go-data
/
tools
/
pkg
/
mod
/
honnef.co
/
go
/
tools@v0.0.1-2020.1.5
/
staticcheck
/
testdata
/
src
/
CheckEmptyBranch
/
CheckEmptyBranch.go
1
package pkg
2
3
func fn1() {
4
if true { // want `empty branch`
5
}
6
if true { // want `empty branch`
7
} else { // want `empty branch`
8
}
9
if true {
10
println()
11
}
12
13
if true {
14
println()
15
} else { // want `empty branch`
16
}
17
18
if true { // want `empty branch`
19
// TODO handle error
20
}
21
22
if true {
23
} else {
24
println()
25
}
26
27
if true {
28
} else if false { // want `empty branch`
29
}
30
}