mirror of
https://github.com/kopia/kopia.git
synced 2026-04-03 22:12:49 -04:00
Minor improvements: Refactor the construction of a test string with many control characters in `TestJSONWriter_StringEscapingPerformanceWithManyControlChars` by using a `strings.Builder`. Rationale: address a future `modernize` linter warning. While this is also "more" efficient, it does not make any practical difference in this context. Simplify the conversion of a short flag to a string in `emitFlags` by removing an unnecessary byte slice conversion (`tools/cli2md/cli2md.go`). Rationale: simplify the expression for clarity and address a future linter warning. - Ref: #5247