mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-13 08:47:04 +02:00
fix unreachable code & missing stringer-generated code
This commit is contained in:
17
rpc/status_string.go
Normal file
17
rpc/status_string.go
Normal file
@ -0,0 +1,17 @@
|
||||
// Code generated by "stringer -type=Status"; DO NOT EDIT.
|
||||
|
||||
package rpc
|
||||
|
||||
import "fmt"
|
||||
|
||||
const _Status_name = "StatusOKStatusRequestErrorStatusServerErrorStatusError"
|
||||
|
||||
var _Status_index = [...]uint8{0, 8, 26, 43, 54}
|
||||
|
||||
func (i Status) String() string {
|
||||
i -= 1
|
||||
if i >= Status(len(_Status_index)-1) {
|
||||
return fmt.Sprintf("Status(%d)", i+1)
|
||||
}
|
||||
return _Status_name[_Status_index[i]:_Status_index[i+1]]
|
||||
}
|
Reference in New Issue
Block a user