Fix linter warnings
* Remove redundant return (code was never reached) * Remove redundant type information * Rename unused function parameters to "_"
This commit is contained in:
parent
fda424bebc
commit
8b4f2d148c
4 changed files with 8 additions and 9 deletions
lib
|
@ -594,7 +594,7 @@ func (store *MessageStore) Sort(criteria []*types.SortCriterion, cb func()) {
|
|||
store.Sorting = true
|
||||
store.worker.PostAction(&types.FetchDirectoryContents{
|
||||
SortCriteria: criteria,
|
||||
}, func(msg types.WorkerMessage) {
|
||||
}, func(_ types.WorkerMessage) {
|
||||
store.Sorting = false
|
||||
if cb != nil {
|
||||
cb()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue