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:
parent
fd0b438585
commit
44dd3678fe
2 changed files with 1 additions and 2 deletions
|
|
@ -49,7 +49,6 @@ linters:
|
||||||
- maintidx
|
- maintidx
|
||||||
- mnd
|
- mnd
|
||||||
- modernize
|
- modernize
|
||||||
- nakedret
|
|
||||||
- nestif
|
- nestif
|
||||||
- nilnil
|
- nilnil
|
||||||
- paralleltest
|
- paralleltest
|
||||||
|
|
|
||||||
|
|
@ -439,5 +439,5 @@ func parseSlackChatID(chatID string) (channelID, threadTS string) {
|
||||||
if len(parts) > 1 {
|
if len(parts) > 1 {
|
||||||
threadTS = parts[1]
|
threadTS = parts[1]
|
||||||
}
|
}
|
||||||
return
|
return channelID, threadTS
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue