enable whitespace
Whitespace is a linter that checks for unnecessary newlines at the start and end of functions, if, for, etc. Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
parent
d8b164b3d4
commit
b190e6e910
3 changed files with 0 additions and 3 deletions
|
|
@ -61,7 +61,6 @@ linters:
|
||||||
- unparam
|
- unparam
|
||||||
- usestdlibvars
|
- usestdlibvars
|
||||||
- usetesting
|
- usetesting
|
||||||
- whitespace
|
|
||||||
settings:
|
settings:
|
||||||
errcheck:
|
errcheck:
|
||||||
check-type-assertions: true
|
check-type-assertions: true
|
||||||
|
|
|
||||||
|
|
@ -698,7 +698,6 @@ func (c *OneBotChannel) parseMessageSegments(raw json.RawMessage, selfID int64)
|
||||||
textParts = append(textParts, "[forward message]")
|
textParts = append(textParts, "[forward message]")
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,6 @@ func NewGitHubCopilotProvider(uri string, connectMode string, model string) (*Gi
|
||||||
Hooks: &copilot.SessionHooks{},
|
Hooks: &copilot.SessionHooks{},
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
client.Stop()
|
client.Stop()
|
||||||
return nil, fmt.Errorf("create session failed: %w", err)
|
return nil, fmt.Errorf("create session failed: %w", err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue