Skip to content

Commit

Permalink
fix: lint didn't like it
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix86 committed Feb 1, 2021
1 parent 4c0f66f commit 9c2b72c
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions feeders/folder.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package feeders

import (
"github.com/Matrix86/driplane/data"
"github.com/dietsche/rfsnotify"
"github.com/evilsocket/islazy/log"
"path"
"path/filepath"
"strings"

"github.com/Matrix86/driplane/data"

"github.com/dietsche/rfsnotify"
"github.com/evilsocket/islazy/log"
)

// Folder is a Feeder that creates a stream from a folder
Expand All @@ -22,11 +24,11 @@ func NewFolderFeeder(conf map[string]string) (Feeder, error) {
f := &Folder{}

if val, ok := conf["folder.name"]; ok {
if full, err := filepath.Abs(val); err != nil {
full, err := filepath.Abs(val)
if err != nil {
return nil, err
} else {
f.folderName = full
}
f.folderName = full
}

if watcher, err := rfsnotify.NewWatcher(); err != nil {
Expand Down

0 comments on commit 9c2b72c

Please sign in to comment.