Skip to content

Commit e33ddbd

Browse files
committed
Format go
1 parent 077bae5 commit e33ddbd

File tree

1 file changed

+6
-6
lines changed
  • go/ql/test/library-tests/semmle/go/dataflow/ChannelField

1 file changed

+6
-6
lines changed
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
11
package test
22

33
type State struct {
4-
c chan string
4+
c chan string
55
}
66

77
func handler(s *State) {
88

9-
sink(<-s.c)
9+
sink(<-s.c)
1010

1111
}
1212

1313
func requester(s *State) {
1414

15-
data := source()
16-
s.c <- data
15+
data := source()
16+
s.c <- data
1717

1818
}
1919

2020
func source() string {
2121

22-
return "tainted"
22+
return "tainted"
2323

2424
}
2525

26-
func sink(s string) { }
26+
func sink(s string) {}

0 commit comments

Comments
 (0)