mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-21 08:39:03 +01:00
v0.5.0-rc5: check release
This commit is contained in:
@@ -9,7 +9,7 @@ type PathMode string
|
||||
func NewPathMode(pm string) (PathMode, E.NestedError) {
|
||||
switch pm {
|
||||
case "", "forward":
|
||||
return PathMode(pm), E.Nil()
|
||||
return PathMode(pm), nil
|
||||
default:
|
||||
return "", E.Invalid("path mode", pm)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user