mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1433] [CLOSED] convert old for loops to range functions #1606
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#1606
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/1433
Author: @JoshGuarino
Created: 8/24/2025
Status: ❌ Closed
Base:
main← Head:range-functions📝 Commits (1)
afd931econvert old for loops to range functions📊 Changes
15 files changed (+68 additions, -68 deletions)
View changed files
📝
server/file_cache_test.go(+2 -2)📝
server/message_cache_test.go(+4 -4)📝
server/server_account_test.go(+2 -2)📝
server/server_payments_test.go(+3 -3)📝
server/server_test.go(+32 -32)📝
server/topic.go(+1 -1)📝
server/webpush_store_test.go(+1 -1)📝
test/util.go(+2 -2)📝
tools/loadgen/main.go(+2 -2)📝
user/manager_test.go(+3 -3)📝
util/batching_queue_test.go(+2 -2)📝
util/limit.go(+1 -1)📝
util/sprig/dict.go(+1 -1)📝
util/sprig/list.go(+11 -11)📝
util/sprig/strings.go(+1 -1)📄 Description
Since this project tries to use the latest go version, I thought it prudent to update some the old for loops what can be converted to using range function. Language server was giving warnings
for loop can be modernized using range over intso I figured I would do some of this cleanup work.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.