Skip to content

Commit 6209822

Browse files
committed
style: format with the CI-pinned gofumpt/goimports
1 parent c391946 commit 6209822

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

‎cmd/markdown_test.go‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,4 +449,3 @@ func TestRenderMarkdownNarrowWidth(t *testing.T) {
449449
// ---------------------------------------------------------------------------
450450
// Struct-based MarkdownRenderer tests
451451
// ---------------------------------------------------------------------------
452-

‎internal/engine/external_content.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ func wrapExternalToolResult(toolName, content string) string {
4040
return content
4141
}
4242
return permissions.WrapWebContent(content, src)
43-
}
43+
}

‎internal/engine/external_content_test.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ func TestWrapExternalToolResult(t *testing.T) {
3939
if got := wrapExternalToolResult("Read", "plain"); got != "plain" {
4040
t.Fatalf("Read output should be unchanged, got %q", got)
4141
}
42-
}
42+
}

‎internal/pathsafe/pathsafe.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,4 @@ func IsSensitivePath(path string) string {
158158
}
159159

160160
return ""
161-
}
161+
}

‎internal/safewrite/safewrite.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ func WriteFile(path string, data []byte) error {
9494
}
9595

9696
// Build a temp file name in the same directory. The suffix is drawn from
97-
// crypto/rand and the file is opened with O_EXCL, so a same-directory attacker
98-
// cannot pre-create the temp path to hijack or block the write.
97+
// crypto/rand and the file is opened with O_EXCL, so a same-directory attacker
98+
// cannot pre-create the temp path to hijack or block the write.
9999
var fd int
100100
var tmpName string
101101
for attempt := 0; attempt < 5; attempt++ {

0 commit comments

Comments
 (0)