Skip to content

Commit

Permalink
fix(comment): fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aniaan committed Mar 30, 2022
1 parent 6c901f4 commit 03aef3a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions pkg/object/httpserver/mux.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ type (
PathType string
)

// kinds of path
const (
PATH PathType = "path"
PREFIX PathType = "prefix"
Expand Down
1 change: 0 additions & 1 deletion pkg/object/httpserver/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ func (h *Header) Validate() error {
}

// Validate validates Path.

func (p *Path) Validate() error {
if (stringtool.IsAllEmpty(p.Path, p.PathPrefix, p.PathRegexp)) && p.RewriteTarget != "" {
return fmt.Errorf("rewriteTarget is specified but path is empty")
Expand Down

0 comments on commit 03aef3a

Please sign in to comment.