Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iawia002 committed Mar 27, 2023
1 parent ede6fb8 commit 529d82e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions extractors/zhihu/zhihu.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ package zhihu
import (
"encoding/json"
"fmt"
"strings"

"github.com/pkg/errors"

"github.com/iawia002/lux/extractors"
"github.com/iawia002/lux/request"
"github.com/iawia002/lux/utils"
"github.com/pkg/errors"
"strings"
)

const (
Expand All @@ -30,7 +32,6 @@ func (e *extractor) Extract(url string, option extractors.Options) ([]*extractor
return nil, errors.WithStack(extractors.ErrURLParseFailed)
}

var err error
html, err := request.Get(url, url, nil)
if err != nil {
return nil, errors.WithStack(err)
Expand Down
3 changes: 2 additions & 1 deletion extractors/zhihu/zhihu_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package zhihu

import (
"testing"

"github.com/iawia002/lux/extractors"
"github.com/iawia002/lux/test"
"testing"
)

func TestDownload(t *testing.T) {
Expand Down

0 comments on commit 529d82e

Please sign in to comment.