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
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
@@ -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.