Skip to content

Commit 6897bd2

Browse files
greynewellclaude
andcommitted
fix(lint): combine redundant string params, fix goimports formatting
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b27ed27 commit 6897bd2

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/api/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const deadCodeEndpoint = "/v1/analysis/dead-code"
118118

119119
// DeadCode uploads a repository ZIP and runs dead code analysis,
120120
// polling until the async job completes and returning the result.
121-
func (c *Client) DeadCode(ctx context.Context, zipPath, idempotencyKey string, minConfidence string, limit int) (*DeadCodeResult, error) {
121+
func (c *Client) DeadCode(ctx context.Context, zipPath, idempotencyKey, minConfidence string, limit int) (*DeadCodeResult, error) {
122122
endpoint := deadCodeEndpoint
123123
sep := "?"
124124
if minConfidence != "" {

internal/restore/restore_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ func TestIsHorizontalRule(t *testing.T) {
6868
{"--", false},
6969
{"abc", false},
7070
{"# heading", false},
71-
{"-*-", false}, // mixed characters
72-
{"- -a", false}, // non-separator character
71+
{"-*-", false}, // mixed characters
72+
{"- -a", false}, // non-separator character
7373
}
7474
for _, tt := range tests {
7575
if got := isHorizontalRule(tt.line); got != tt.want {

0 commit comments

Comments
 (0)