Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 077bae5 commit e33ddbdCopy full SHA for e33ddbd
1 file changed
go/ql/test/library-tests/semmle/go/dataflow/ChannelField/test.go
@@ -1,26 +1,26 @@
1
package test
2
3
type State struct {
4
- c chan string
+ c chan string
5
}
6
7
func handler(s *State) {
8
9
- sink(<-s.c)
+ sink(<-s.c)
10
11
12
13
func requester(s *State) {
14
15
- data := source()
16
- s.c <- data
+ data := source()
+ s.c <- data
17
18
19
20
func source() string {
21
22
- return "tainted"
+ return "tainted"
23
24
25
26
-func sink(s string) { }
+func sink(s string) {}
0 commit comments