Fix lint issues

This commit is contained in:
Pijus Kamandulis
2020-04-09 18:53:45 +03:00
parent bb6e924866
commit 0a08f62dfe
4 changed files with 8 additions and 6 deletions

View File

@@ -2,16 +2,18 @@ package client
import (
"context"
"github.com/chromedp/chromedp"
"io/ioutil"
"os"
"time"
"github.com/chromedp/chromedp"
config "../models/config"
log "../utils/log"
)
func GetRedirectUrl(url string) (string, error) {
// GetRedirectURL - Returns URL that the given URL redirects to
func GetRedirectURL(url string) (string, error) {
dir, err := ioutil.TempDir("", "chromedp-example")
if err != nil {
return "", err