mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-20 12:23:22 +00:00
- Extract writeJSONResult() to replace 5 identical write+silent-error trailers - Replace local isRepoDirty() with existing git.IsDirty() (8 call sites) - Use defer for suppressUIToDevnull restore instead of manual calls at each return site in install.go and update.go (prevents stdout leak on new paths) - Fix ResolvePolicy always filling EnabledAnalyzers, which broke the nil-means-all contract for ForPolicy; add EffectiveAnalyzers() for display - Simplify collectOutputJSON double map allocation - Remove unnecessary string conversion in writeJSONError