mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1406] [MERGED] refactor: use slices.Contains to simplify code #1597
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1597
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1406
Author: @tanhuaan
Created: 7/30/2025
Status: ✅ Merged
Merged: 2/1/2026
Merged by: @binwiederhier
Base:
main← Head:main📝 Commits (1)
0e79c4brefactor: use slices.Contains to simplify code📊 Changes
2 files changed (+4 additions, -12 deletions)
View changed files
📝
util/sprig/defaults.go(+2 -6)📝
util/util.go(+2 -6)📄 Description
There is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.