---
title: "unused-append-result"
description: "Detect append results that can never be observed."
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.

# unused-append-result

**Default severity:** `error`

`append` returns the updated slice header. Discarding that result loses any new
length or reallocated backing array. The check reports only function-local
slices whose backing storage has not escaped or been observably aliased.

## Bad

```go
values := make([]int, 0); values = append(values, item) // values is never read again
```

## Good

```go
values = append(values, item)
```

Source: https://strider.gempir.com/analyzers/unused-append-result/index.mdx
