mirror of
https://github.com/MontFerret/ferret.git
synced 2025-11-06 08:39:09 +02:00
Linter Cleanups (#294)
* sync with MontFerret/ferret * fix --param handling When params is converted to map it uses strings.Split, which slices a string into all substrings separated by :. * remove impossible conditions nil != nil * delete ineffectual assignments * replace '+= 1' with '++' * remove useless comparison with nil * merge variable declarations * remove bool comparison * fix imports * fix imports * delete unused file * use copy instead of loop * delete unused DummyInterface * remove unnecassary break statements * tidy modules
This commit is contained in:
@@ -62,7 +62,7 @@ func (b *Browser) Close() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
os.RemoveAll(tmpDir)
|
||||
err = os.RemoveAll(tmpDir)
|
||||
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -47,7 +47,7 @@ func Launch(setters ...Option) (*Browser, error) {
|
||||
|
||||
temporaryUserDataDir := opts.userDataDir
|
||||
|
||||
if temporaryUserDataDir == "" && opts.noUserDataDir == false {
|
||||
if temporaryUserDataDir == "" && !opts.noUserDataDir {
|
||||
dirName, err := ioutil.TempDir(os.TempDir(), "ferret_dev_profile-")
|
||||
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user