Skip to content

refactor: using slices.Contains to simplify the code - #9918

Merged
calmh merged 2 commits into
syncthing:mainfrom
dashangcun:main
Feb 7, 2025
Merged

calmh merged 2 commits into
syncthing:mainfrom
dashangcun:main

Conversation

@dashangcun

Copy link
Copy Markdown
Contributor

Purpose

This is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

Testing

Describe what testing has been done, and how the reviewer can test the change
if new tests are not included.

Screenshots

If this is a GUI change, include screenshots of the change. If not, please
feel free to just delete this section.

Documentation

If this is a user visible change (including API and protocol changes), add a link here
to the corresponding pull request on https://github.com/syncthing/docs or describe
the documentation changes necessary.

Authorship

Your name and email will be added automatically to the AUTHORS file
based on the commit metadata.

@acolomb

acolomb commented Jan 13, 2025

Copy link
Copy Markdown
Member

Imagine 😉

Comment thread lib/model/devicedownloadstate.go Resolved
@dashangcun

Copy link
Copy Markdown
Contributor Author

friendly ping~

@calmh
calmh enabled auto-merge (squash) February 7, 2025 08:01
@calmh
calmh merged commit 5495c98 into syncthing:main Feb 7, 2025
@calmh calmh added this to the v1.29.3 milestone Feb 7, 2025
calmh added a commit that referenced this pull request Mar 10, 2025
* main: (25 commits)
  refactor(api): make shutdown timeout configurable for tests (#9980)
  refactor(api): deduplicate HTTP test helpers and allow session cookie access (#9977)
  build: correct API call for Weblate statistics
  build(deps): update dependencies (#9978)
  chore(etc): remove /usr/bin prefix from Linux .desktop files (#9966)
  build: use Go 1.24, minimum is Go 1.23 (#9960)
  fix(policy): do not require multiple maintainers for build changes
  chore(gui, man, authors): update docs, translations, and contributors
  chore(fs): build kqueue instead of fsevents watcher on iOS (#9950)
  build(deps): update dependencies (#9951)
  refactor: using slices.Contains to simplify the code (#9918)
  build: switch to cloud code signing for Windows (#9948)
  chore(gui, man, authors): update docs, translations, and contributors
  chore(gui, man, authors): update docs, translations, and contributors
  fix(model): clarify errors on Windows user/group lookup (fixes #9929) (#9930)
  chore(gui, man, authors): update docs, translations, and contributors
  chore(scanner): don't warn about cancelled scan (#9920)
  chore(gui, man, authors): update docs, translations, and contributors
  chore(proto): change symlinktarget to be byte sequence (fixes #9913) (#9914)
  fix(api): don't crash requests after failing to unmarshal tokens (fixes #9909) (#9912)
  ...
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jul 1, 2026
@syncthing syncthing locked and limited conversation to collaborators Jul 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants