Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Prune redundant comments

Manav Rathi8249c259b633
diff --git a/desktop/scripts/vips.js b/desktop/scripts/vips.js
index 4a7d72ace9..0d55d53a6b 100755
--- a/desktop/scripts/vips.js
+++ b/desktop/scripts/vips.js
@@ -5,7 +5,6 @@ const path = require("node:path");
const vipsVersion = "8.18.7";
-// Version bumps: verify assets against GitHub metadata before updating pins.
const vipsAssets = {
"linux-x64": {
name: "vips-x64",
diff --git a/mobile/apps/auth/lib/ui/settings/data/import/otp_auth_import_parser.dart b/mobile/apps/auth/lib/ui/settings/data/import/otp_auth_import_parser.dart
index 7bee91c054..09eb9797f3 100644
--- a/mobile/apps/auth/lib/ui/settings/data/import/otp_auth_import_parser.dart
+++ b/mobile/apps/auth/lib/ui/settings/data/import/otp_auth_import_parser.dart
@@ -278,7 +278,7 @@ class _KeyedArchive {
}
final cached = _cache[index];
if (cached != null) {
- // Reusing a resolved object still expands it again during import.
+ // Import expands cached objects again.
_budget.consume(cached.cost);
_resolving.remove(index);
return cached.value;
diff --git a/mobile/apps/auth/lib/ui/settings/data/import/plain_text_import_parser.dart b/mobile/apps/auth/lib/ui/settings/data/import/plain_text_import_parser.dart
index 45aa6e3290..590b414acc 100644
--- a/mobile/apps/auth/lib/ui/settings/data/import/plain_text_import_parser.dart
+++ b/mobile/apps/auth/lib/ui/settings/data/import/plain_text_import_parser.dart
@@ -36,7 +36,7 @@ List<Code> _parseEntries<T>(Iterable<T> entries, Code Function(T entry) parse) {
try {
codes.add(parse(entry));
} catch (error, stackTrace) {
- // Parser errors can contain OTP secrets; omit them from logs and telemetry.
+ // Parser errors may contain OTP secrets.
_logger.warning(
'Skipping malformed import entry (${error.runtimeType})',
null,
diff --git a/mobile/apps/auth/test/ui/settings/data/import/otp_auth_import_parser_test.dart b/mobile/apps/auth/test/ui/settings/data/import/otp_auth_import_parser_test.dart
index f1c9f596ad..81feb78eff 100644
--- a/mobile/apps/auth/test/ui/settings/data/import/otp_auth_import_parser_test.dart
+++ b/mobile/apps/auth/test/ui/settings/data/import/otp_auth_import_parser_test.dart
@@ -78,8 +78,6 @@ void main() {
});
test('preserves ordinary shared folders and account lists', () async {
- // The same folder occurs twice; a third shares its account list.
- // Two more folders have missing/empty account lists.
final codes = parseOtpAuthExport(
await _fixture('backup-shared.otpauthdb'),
password: 'abc123',
@@ -97,8 +95,6 @@ void main() {
for (final representation in ['uids', 'inline']) {
test('rejects excessive $representation archive expansion', () async {
- // Small synthetic backups share 16 account references across 32
- // folder references, encoded either as UIDs or inline containers.
final bytes = await _fixture(
'backup-expanded-$representation.otpauthdb',
);
@@ -116,7 +112,6 @@ void main() {
}
test('bounds binary decoding before resolving the keyed archive', () async {
- // Distinct plist object IDs point to the same 512-byte test value.
final bytes = await _fixture('backup-expanded-binary.otpauthdb');
expect(
() => parseOtpAuthExport(bytes, password: 'abc123'),
diff --git a/mobile/apps/photos/lib/ui/sharing/widgets/selected_person_chip.dart b/mobile/apps/photos/lib/ui/sharing/widgets/selected_person_chip.dart
index abaa870bf0..567f2e31b4 100644
--- a/mobile/apps/photos/lib/ui/sharing/widgets/selected_person_chip.dart
+++ b/mobile/apps/photos/lib/ui/sharing/widgets/selected_person_chip.dart
@@ -35,7 +35,6 @@ class SelectedRecipientChips extends StatefulWidget {
}
class _SelectedRecipientChipsState extends State<SelectedRecipientChips> {
- // Keep outgoing chips in the layout until their exit animation completes.
late final _displayedSuggestions = List<UserSuggestion>.of(
widget.suggestions,
);
diff --git a/mobile/apps/photos/test/ui/sharing/add_people_sheet_test.dart b/mobile/apps/photos/test/ui/sharing/add_people_sheet_test.dart
index 04d24548bf..91e57acae0 100644
--- a/mobile/apps/photos/test/ui/sharing/add_people_sheet_test.dart
+++ b/mobile/apps/photos/test/ui/sharing/add_people_sheet_test.dart
@@ -63,7 +63,6 @@ void main() {
buildNumber: '1',
),
);
- // Only preferences are needed; native plugins are unavailable in this test.
try {
await Configuration.instance.init(preferences);
} catch (_) {}
diff --git a/server/pkg/middleware/request_body_test.go b/server/pkg/middleware/request_body_test.go
index 00fd74deb0..325cb79249 100644
--- a/server/pkg/middleware/request_body_test.go
+++ b/server/pkg/middleware/request_body_test.go
@@ -33,7 +33,6 @@ func TestLimitRequestBody(t *testing.T) {
body := strings.Repeat("a", tc.size)
for _, framing := range []string{"known length", "unknown length"} {
t.Run(tc.name+"/"+framing, func(t *testing.T) {
- // Exercise both ordinary body logging and the redacted path.
for _, path := range []string{"/test", "/events"} {
t.Run(path, func(t *testing.T) {
rateLimiter := &RateLimitMiddleware{limit: 1}