Skip to content

Conversation

@javi11
Copy link
Owner

@javi11 javi11 commented Dec 30, 2025

Summary

  • Remove unused FormatInt() function from archive/common.go
  • Remove 6 unused functions from utils/file_extensions.go (AllExtensions, AllExtensionsWith, AllPossibleExtensions, WhatIsMostLikelyExtension, sniffTextOrNZB, isLikelyUTF8)
  • Remove unused imports (bufio, os, github.com/gabriel-vasile/mimetype)
  • Extract common archive processing logic into unified processArchive() function
  • Fix severe formatting corruption in processSevenZipArchive() (mixed tabs/spaces)
  • Reduce ~80 lines of duplicate code between RAR and 7zip processing

Test plan

  • go build ./... passes
  • go vet ./internal/importer/... passes
  • go test ./internal/importer/... passes

🤖 Generated with Claude Code

Remove unused functions and consolidate duplicate archive processing logic:

- Remove unused FormatInt() from archive/common.go
- Remove 6 unused functions from utils/file_extensions.go:
  AllExtensions, AllExtensionsWith, AllPossibleExtensions,
  WhatIsMostLikelyExtension, sniffTextOrNZB, isLikelyUTF8
- Remove unused imports (bufio, os, mimetype)
- Extract common archive processing logic into processArchive()
- Fix severe formatting corruption in processSevenZipArchive()
- Reduce code duplication between RAR and 7zip processing (~80 lines)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@javi11 javi11 closed this Dec 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants