Skip to content

Commit

Permalink
A quick fix of nil point/interface casting
Browse files Browse the repository at this point in the history
Nullable constraint is missing; pretty go1 style fixing is on demand

(cherry picked from commit 8bb7cbb)
  • Loading branch information
AZ-X committed Jul 17, 2022
1 parent 8c60e12 commit d039140
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions repique/features/dns/nodes/dnscrypt.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ func (n *dnscryptnode) boost(o *node) interface{} {
}
expired = nil
Ret:
if expired == nil {
return nil
}
return expired
}

Expand Down

0 comments on commit d039140

Please sign in to comment.