1
0
Fork 0
mirror of https://github.com/FrankerFaceZ/FrankerFaceZ.git synced 2025-08-06 14:20:56 +00:00

Fix go vet problems

This commit is contained in:
Kane York 2015-11-05 23:24:35 -08:00
parent 525b19eccb
commit 0dffc494e4
3 changed files with 8 additions and 8 deletions

View file

@ -366,7 +366,7 @@ func HBackendUpdateAndPublish(w http.ResponseWriter, r *http.Request) {
cacheinfo, ok := ServerInitiatedCommands[cmd] cacheinfo, ok := ServerInitiatedCommands[cmd]
if !ok { if !ok {
w.WriteHeader(422) w.WriteHeader(422)
fmt.Fprintf(w, "Caching semantics unknown for command '%s'. Post to /addcachedcommand first.") fmt.Fprintf(w, "Caching semantics unknown for command '%s'. Post to /addcachedcommand first.", cmd)
return return
} }

View file

@ -203,10 +203,10 @@ func HandleSurvey(conn *websocket.Conn, client *ClientInfo, msg ClientMessage) (
} }
type FollowEvent struct { type FollowEvent struct {
User string `json:u` User string `json:"u"`
Channel string `json:c` Channel string `json:"c"`
NowFollowing bool `json:f` NowFollowing bool `json:"f"`
Timestamp time.Time `json:t` Timestamp time.Time `json:"t"`
} }
var FollowEvents []FollowEvent var FollowEvents []FollowEvent

View file

@ -34,13 +34,13 @@ type ClientMessage struct {
// Message ID. Increments by 1 for each message sent from the client. // Message ID. Increments by 1 for each message sent from the client.
// When replying to a command, the message ID must be echoed. // When replying to a command, the message ID must be echoed.
// When sending a server-initiated message, this is -1. // When sending a server-initiated message, this is -1.
MessageID int `json:m` MessageID int `json:"m"`
// The command that the client wants from the server. // The command that the client wants from the server.
// When sent from the server, the literal string 'True' indicates success. // When sent from the server, the literal string 'True' indicates success.
// Before sending, a blank Command will be converted into SuccessCommand. // Before sending, a blank Command will be converted into SuccessCommand.
Command Command `json:c` Command Command `json:"c"`
// Result of json.Unmarshal on the third field send from the client // Result of json.Unmarshal on the third field send from the client
Arguments interface{} `json:a` Arguments interface{} `json:"a"`
origArguments string origArguments string
} }