Skip to content

Commit

Permalink
Address review feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
breml committed Mar 22, 2021
1 parent 2b78b2b commit 6891566
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ $(PROGRAM)$(EXEC_SUFFIX): gogenerate .FORCE $(GOVVV)
govvv build -o $@

.PHONY: gogenerate
generate: $(MOQ)
gogenerate: $(MOQ)
go generate ./...

.PHONY: check
Expand Down
7 changes: 1 addition & 6 deletions internal/daemon/logstashconfig/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,7 @@ func (f File) Save(targetDir string) error {
return err
}

err = ioutil.WriteFile(path.Join(targetDir, f.Name), f.Body, 0600)
if err != nil {
return err
}

return nil
return ioutil.WriteFile(path.Join(targetDir, f.Name), f.Body, 0600)
}

func (f *File) parse() error {
Expand Down
4 changes: 0 additions & 4 deletions internal/daemon/pipeline/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,6 @@ func (a Archive) Validate() error {
return nil
}

// func (a Archive) walk() {

// }

func (a Archive) Zip() ([]byte, error) {
buf := new(bytes.Buffer)
w := zip.NewWriter(buf)
Expand Down

0 comments on commit 6891566

Please sign in to comment.