Skip to content

Commit fb139d3

Browse files
fix: remove unused fmt and json imports from activetime test
1 parent 91e061a commit fb139d3

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

internal/claude/active_live_activetime_test.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
package claude
22

33
import (
4-
"encoding/json"
5-
"fmt"
64
"os"
75
"path/filepath"
86
"testing"
@@ -130,7 +128,7 @@ func TestParseLiveActiveTime_MultipleResumptions(t *testing.T) {
130128
t.Fatalf("expected ActiveMinutes~3, got %f", stats.ActiveMinutes)
131129
}
132130

133-
_ = fmt.Sprintf("") // keep fmt import for writeLiveJSONL's json.Marshal usage
131+
134132
}
135133

136134
func TestParseLiveActiveTime_ExactThreshold(t *testing.T) {
@@ -156,5 +154,3 @@ func TestParseLiveActiveTime_ExactThreshold(t *testing.T) {
156154
// mkAssistantWithUsage helper uses the one from active_live_context_test.go.
157155
// Both are accessible since this is in the same test package.
158156

159-
// Ensure json import is used (needed by writeLiveJSONL indirectly).
160-
var _ = json.Marshal

0 commit comments

Comments
 (0)