Skip to content

Commit c0b7cde

Browse files
committed
fix(assert-checker): remove unused return value
1 parent b411d9d commit c0b7cde

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

errcheck/errcheck.go

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -677,17 +677,15 @@ func (v *visitor) checkAssignment(lhs, rhs []ast.Expr) (followed bool) {
677677
return
678678
}
679679

680-
func (v *visitor) checkAssertExpr(expr *ast.TypeAssertExpr) bool {
680+
func (v *visitor) checkAssertExpr(expr *ast.TypeAssertExpr) {
681681
if !v.asserts {
682-
return false
682+
return
683683
}
684684
if expr.Type == nil {
685685
// type switch
686-
return false
686+
return
687687
}
688688
v.addErrorAtPosition(expr.Pos(), nil)
689-
690-
return false
691689
}
692690

693691
func isErrorType(t types.Type) bool {

0 commit comments

Comments
 (0)