You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
examples/basicauth: Simplify comma-ok type assertion in if statement. (google#558)
According to https://golang.org/ref/spec#Type_assertions:
> For an expression x of interface type and a type T, the primary expression
>
> x.(T)
>
> asserts that x is not nil and that the value stored in x is of type T. [...] The
> value of ok is true if the assertion holds.
Therefore, this if statement can be simplified without changing behavior.
0 commit comments