---
title: "discarded-error-result"
description: "Detect discarded error results from typed calls."
image: "https://strider.gempir.com/og.png"
---

> Documentation Index
> Fetch the complete documentation index at: https://strider.gempir.com/llms.txt
> Use this file to discover all available pages before exploring further.

# discarded-error-result

**Default severity:** `error`

This check uses resolved call signatures, so it catches arbitrary functions and
methods that return `error`, including errors assigned to `_`.

## Bad

```go
value, _ := load()
```

## Good

```go
value, err := load()
if err != nil {
	return err
}
```

Source: https://strider.gempir.com/analyzers/discarded-error-result/index.mdx
