mirror of
https://github.com/sipeed/picoclaw.git
synced 2026-06-12 18:08:54 +00:00
enable nakedret
Checks that functions with naked returns are not longer than a maximum size (can be zero). Signed-off-by: Kai Xia <kaix+github@fastmail.com>
This commit is contained in:
@@ -49,7 +49,6 @@ linters:
|
||||
- maintidx
|
||||
- mnd
|
||||
- modernize
|
||||
- nakedret
|
||||
- nestif
|
||||
- nilnil
|
||||
- paralleltest
|
||||
|
||||
@@ -439,5 +439,5 @@ func parseSlackChatID(chatID string) (channelID, threadTS string) {
|
||||
if len(parts) > 1 {
|
||||
threadTS = parts[1]
|
||||
}
|
||||
return
|
||||
return channelID, threadTS
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user