Skip to content

Commit

Permalink
fix: apply suggestion
Browse files Browse the repository at this point in the history
Signed-off-by: hlts2 <hiroto.funakoshi.hiroto@gmail.com>
  • Loading branch information
hlts2 committed Jul 7, 2020
1 parent 1ad78ba commit a38b1a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ import (
"path/filepath"
)

// Open opens file with a gien path and flag and permission. If file does not exist, create the file.
// Open opens the file with the given path, flag and permission.
// If the folder does not exists, create the folder.
// If the file does not exist, create the file.
func Open(path string, flg int, perm os.FileMode) *os.File {
if path == "" {
return nil
Expand Down

0 comments on commit a38b1a5

Please sign in to comment.