Skip to content

Commit

Permalink
Chore: use std slices.Reverse (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
xjasonlyu authored Sep 21, 2024
1 parent d32d263 commit cbb65e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 0 additions & 8 deletions common/reverse/reverse.go

This file was deleted.

4 changes: 2 additions & 2 deletions provider/gfriends/gfriends.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ import (
"fmt"
"net/url"
"path"
"slices"
"time"

"github.com/iancoleman/orderedmap"
"go.uber.org/atomic"

"github.com/metatube-community/metatube-sdk-go/common/fetch"
"github.com/metatube-community/metatube-sdk-go/common/reverse"
"github.com/metatube-community/metatube-sdk-go/common/singledo"
"github.com/metatube-community/metatube-sdk-go/model"
"github.com/metatube-community/metatube-sdk-go/provider"
Expand Down Expand Up @@ -149,7 +149,7 @@ func (ft *fileTree) query(s string) (images []string, err error) {
}
}
}
reverse.Slice(images) // descending
slices.Reverse(images) // descending
return
}

Expand Down

0 comments on commit cbb65e2

Please sign in to comment.