mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
WTF-657 Add spec coverage for cfg/common_settings.go (#728)
* WTF-657 Add spec coverage for cfg/common_settings.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for cfg/position_validation.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for cfg/validations.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for checklist/checklist.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for checklist/checklist_item.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for utils/conversions.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Get rid of utils.Home() function Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for utils/homedir.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Add spec coverage for utils/text.go Signed-off-by: Chris Cummer <chriscummer@me.com> * WTF-657 Clean up utils/utils.go Signed-off-by: Chris Cummer <chriscummer@me.com>
This commit is contained in:
@@ -19,7 +19,7 @@ func GetStories(storyType string) ([]int, error) {
|
||||
return storyIds, err
|
||||
}
|
||||
|
||||
err = utils.ParseJson(&storyIds, resp.Body)
|
||||
err = utils.ParseJSON(&storyIds, resp.Body)
|
||||
if err != nil {
|
||||
return storyIds, err
|
||||
}
|
||||
@@ -36,7 +36,7 @@ func GetStory(id int) (Story, error) {
|
||||
return story, err
|
||||
}
|
||||
|
||||
err = utils.ParseJson(&story, resp.Body)
|
||||
err = utils.ParseJSON(&story, resp.Body)
|
||||
if err != nil {
|
||||
return story, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user