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 / if-return / if-return.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/if-return/if-return.go b/.config/coc/extensions/coc-go-data/tools/pkg/mod/honnef.co/go/tools@v0.0.1-2020.1.5/simple/testdata/src/if-return/if-return.go
deleted file mode 100644 (file)
index f8cf98f..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-package pkg
-
-func fn() bool { return true }
-func fn1() bool {
-       x := true
-       if x { // want `should use 'return x'`
-               return true
-       }
-       return false
-}
-
-func fn2() bool {
-       x := true
-       if !x {
-               return true
-       }
-       if x {
-               return true
-       }
-       return false
-}
-
-func fn3() int {
-       var x bool
-       if x {
-               return 1
-       }
-       return 2
-}
-
-func fn4() bool { return true }
-
-func fn5() bool {
-       if fn() { // want `should use 'return !fn\(\)'`
-               return false
-       }
-       return true
-}
-
-func fn6() bool {
-       if fn3() != fn3() { // want `should use 'return fn3\(\) != fn3\(\)'`
-               return true
-       }
-       return false
-}
-
-func fn7() bool {
-       if 1 > 2 { // want `should use 'return 1 > 2'`
-               return true
-       }
-       return false
-}
-
-func fn8() bool {
-       if fn() || fn() {
-               return true
-       }
-       return false
-}
-
-func fn9(x int) bool {
-       if x > 0 {
-               return true
-       }
-       return true
-}
-
-func fn10(x int) bool {
-       if x > 0 { // want `should use 'return x <= 0'`
-               return false
-       }
-       return true
-}
-
-func fn11(x bool) bool {
-       if x { // want `should use 'return !x'`
-               return false
-       }
-       return true
-}
-
-func fn12() bool {
-       var x []bool
-       if x[0] { // want `should use 'return !x\[0\]'`
-               return false
-       }
-       return true
-}
-
-func fn13(a, b int) bool {
-       if a != b { // want `should use 'return a == b' instead of 'if a != b`
-               return false
-       }
-       return true
-}