Skip to content

Commit

Permalink
Merge pull request #12 from hirose31/pass-lint-security
Browse files Browse the repository at this point in the history
Pass make lint security
  • Loading branch information
hirose31 authored Feb 20, 2023
2 parents 33593cd + 1ac1381 commit a555fa7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions pkg/c/controller.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package c provides Controller.
package c

import (
Expand Down
3 changes: 2 additions & 1 deletion pkg/m/s3.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package m provides S3 models.
package m

import (
Expand Down Expand Up @@ -283,7 +284,7 @@ func (s3m S3Model) Download(object s3types.Object, destPath string) (n int64, er
return 0, fmt.Errorf("exists")
}

fp, err := os.Create(destPath)
fp, err := os.Create(filepath.Clean(destPath))
if err != nil {
return 0, err
}
Expand Down
1 change: 1 addition & 0 deletions pkg/v/ui.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// Package v provides UI View
package v

import (
Expand Down

0 comments on commit a555fa7

Please sign in to comment.