Merge pull request #1313 from trheyi/main

Remove unnecessary blank lines in multiple files for improved code re…
This commit is contained in:
Max 2025-11-15 17:57:11 +08:00 committed by GitHub
commit 761ad5696d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 3 additions and 6 deletions

View file

@ -22,4 +22,3 @@ func (f *Factory) CreateWriter(ctx *context.Context) (message.Writer, error) {
func (f *Factory) CreateAdapter(ctx *context.Context) (message.Adapter, error) { func (f *Factory) CreateAdapter(ctx *context.Context) (message.Adapter, error) {
return NewAdapter(), nil return NewAdapter(), nil
} }

View file

@ -30,9 +30,9 @@ type AdapterConfig struct {
// DefaultLinkTemplates provides default Markdown templates for non-text message types // DefaultLinkTemplates provides default Markdown templates for non-text message types
var DefaultLinkTemplates = map[string]string{ var DefaultLinkTemplates = map[string]string{
"image": "![%s](%s)", // Markdown image: ![alt](url) - displays inline "image": "![%s](%s)", // Markdown image: ![alt](url) - displays inline
"audio": "🔊 [Play Audio](%s)", // Link (audio can't display inline in Markdown) "audio": "🔊 [Play Audio](%s)", // Link (audio can't display inline in Markdown)
"video": "🎬 [Watch Video](%s)", // Link (video can't display inline in Markdown) "video": "🎬 [Watch Video](%s)", // Link (video can't display inline in Markdown)
"file": "📎 [Download File](%s)", "file": "📎 [Download File](%s)",
"page": "📄 [Open Page](%s)", "page": "📄 [Open Page](%s)",
"table": "📊 [View Table](%s)", "table": "📊 [View Table](%s)",

View file

@ -53,4 +53,3 @@ type StreamHandler interface {
// Close closes the handler // Close closes the handler
Close() error Close() error
} }

View file

@ -155,4 +155,3 @@ const (
DeltaMerge = "merge" // Merge (for objects) DeltaMerge = "merge" // Merge (for objects)
DeltaSet = "set" // Set (for new fields) DeltaSet = "set" // Set (for new fields)
) )