fix(tui): show CVSS severity on TUI for Ubuntu (#638)

* fix(tui): show CVSS severity on TUI for Ubuntu

* refactoring
This commit is contained in:
Kota Kanbe
2018-05-02 17:07:20 +09:00
committed by GitHub
parent d5d88d8cf0
commit 241c943424
4 changed files with 34 additions and 16 deletions

View File

@@ -527,7 +527,7 @@ func (c *HipChatConf) Validate() (errs []error) {
// ChatWorkConf is ChatWork config
type ChatWorkConf struct {
ApiToken string `json:"ApiToken"`
APIToken string `json:"ApiToken"`
Room string `json:"Room"`
}
@@ -540,7 +540,7 @@ func (c *ChatWorkConf) Validate() (errs []error) {
errs = append(errs, fmt.Errorf("chatworkcaht.room must not be empty"))
}
if len(c.ApiToken) == 0 {
if len(c.APIToken) == 0 {
errs = append(errs, fmt.Errorf("chatworkcaht.ApiToken must not be empty"))
}