Skip to content

Commit

Permalink
fix(linter): revive fixes in golang
Browse files Browse the repository at this point in the history
Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 18, 2024
1 parent bbcbe25 commit 9b40826
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ import (
)

var (
ErrEmptyPath = errors.New("provided path is empty") // ErrEmptyPath is returned when function is called with empty path parameter
ErrPathIsDirectory = fmt.Errorf("provided path is directory: %w", os.ErrExist) // ErrPathIsDirectory is returned when path exists, but is a directory and not a file
ErrFileNotRegular = errors.New("file is not regular file") // ErrFileNotRegular is returned when path exists, but is not a regular file
// ErrEmptyPath is returned when function is called with empty path parameter
ErrEmptyPath = errors.New("provided path is empty")
// ErrPathIsDirectory is returned when path exists, but is a directory and not a file
ErrPathIsDirectory = fmt.Errorf("provided path is directory: %w", os.ErrExist)
// ErrFileNotRegular is returned when path exists, but is not a regular file
ErrFileNotRegular = errors.New("file is not regular file")
)

// CheckFileExists checks if file exists at PATH
Expand Down

0 comments on commit 9b40826

Please sign in to comment.