Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f42a11ec
Commit
f42a11ec
authored
Mar 01, 2013
by
John Graham-Cumming
Committed by
Ian Lance Taylor
Mar 01, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: eliminate odd if statement with identical branches
R=golang-dev, iant CC=golang-dev
https://golang.org/cl/7447044
parent
be6e82e3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
src/pkg/net/fd_unix.go
src/pkg/net/fd_unix.go
+1
-5
No files found.
src/pkg/net/fd_unix.go
View file @
f42a11ec
...
...
@@ -182,11 +182,7 @@ func (s *pollServer) CheckDeadlines() {
if
t
>
0
{
if
t
<=
now
{
delete
(
s
.
pending
,
key
)
if
mode
==
'r'
{
s
.
poll
.
DelFD
(
fd
.
sysfd
,
mode
)
}
else
{
s
.
poll
.
DelFD
(
fd
.
sysfd
,
mode
)
}
s
.
poll
.
DelFD
(
fd
.
sysfd
,
mode
)
s
.
WakeFD
(
fd
,
mode
,
errTimeout
)
}
else
if
nextDeadline
==
0
||
t
<
nextDeadline
{
nextDeadline
=
t
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment