---
title: "single-argument-append"
description: "Detect append calls that add no elements."
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.

# single-argument-append

**Default severity:** `warning`

Calling the predeclared `append` function with only a slice argument returns
that same slice unchanged. Assign or return the slice directly instead.

## Bad

```go
destination = append(source)
```

## Good

```go
destination = source
```

Source: https://strider.gempir.com/analyzers/single-argument-append/index.mdx
