some deletions
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / honnef.co / go / tools@v0.0.1-2020.1.5 / simple / testdata / src / CheckRedundantReturn / LintRedundantReturn.go
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckRedundantReturn/LintRedundantReturn.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/CheckRedundantReturn/LintRedundantReturn.go
deleted file mode 100644 (file)
index 410eea2..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-package pkg
-
-func fn1() {
-       return // want `redundant return`
-}
-
-func fn2(a int) {
-       return // want `redundant return`
-}
-
-func fn3() int {
-       return 3
-}
-
-func fn4() (n int) {
-       return
-}
-
-func fn5(b bool) {
-       if b {
-               return
-       }
-}
-
-func fn6() {
-       return
-       println("foo")
-}
-
-func fn7() {
-       return
-       println("foo")
-       return // want `redundant return`
-}
-
-func fn8() {
-       _ = func() {
-               return // want `redundant return`
-       }
-}