Skip to content

Commit 61ec819

Browse files
authored
Merge pull request #24 from DennisSSDev/patch-1
Fix for Redundant conn.Close()
2 parents 3812be2 + d24a149 commit 61ec819

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

022_hands-on/02/04_solution/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ func main() {
3434
// how does the above reader know when it's done?
3535
fmt.Println("Code got here.")
3636
io.WriteString(conn, "I see you connected.")
37-
38-
conn.Close()
3937
}
4038
}

0 commit comments

Comments
 (0)