[PR #11502] [MERGED] refactor: use slices.Equal to simplify code #12293

Closed
opened 2025-11-12 16:32:49 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/11502
Author: @minxinyi
Created: 7/23/2025
Status: Merged
Merged: 7/23/2025
Merged by: @jmorganca

Base: mainHead: main


📝 Commits (1)

  • 0cd9148 refactor: use slices.Equal to simplify code

📊 Changes

1 file changed (+2 additions, -14 deletions)

View changed files

📝 server/routes_test.go (+2 -14)

📄 Description

In the Go 1.21 standard library, a new function has been introduced that enhances code conciseness and readability. It can be find here.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/11502 **Author:** [@minxinyi](https://github.com/minxinyi) **Created:** 7/23/2025 **Status:** ✅ Merged **Merged:** 7/23/2025 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (1) - [`0cd9148`](https://github.com/ollama/ollama/commit/0cd9148aa7db830f6345ac5b5448176ad61115c1) refactor: use slices.Equal to simplify code ### 📊 Changes **1 file changed** (+2 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `server/routes_test.go` (+2 -14) </details> ### 📄 Description In the Go 1.21 standard library, a new function has been introduced that enhances code conciseness and readability. It can be find [here](https://pkg.go.dev/slices@go1.21.1#Equal). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-12 16:32:49 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama-ollama#12293