Skip to content

Commit

Permalink
filesystem: split const blocks
Browse files Browse the repository at this point in the history
The rationale for this is that editors / LSP picks up the const comment
and applies it to all members of the block. The root and error
constants are not "permission bits" like the values above them.
  • Loading branch information
djdv committed Jan 9, 2024
1 parent fcc67c6 commit 8c7cbcc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/filesystem/filesystem.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,9 @@ const (
ExecuteUser
WriteUser
ReadUser
)

const (
Root = "."

ErrPath = generic.ConstError("path not valid")
Expand Down

0 comments on commit 8c7cbcc

Please sign in to comment.