1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Fix Errors in azuredevops and devto modules

azuredevops had a error due to cli being a pointer to interface rather
than interface.

devto module's `widget.articles` and `displayArticles` data type changed
to `devto.ListedArticles`.
This commit is contained in:
Boot-Error
2019-10-11 03:30:11 +05:30
parent a340aa6fa0
commit a1526b97e8
5 changed files with 132 additions and 22 deletions

View File

@@ -13,7 +13,7 @@ import (
type Widget struct {
view.TextWidget
cli *azrBuild.Client
cli azrBuild.Client
settings *Settings
displayBuffer string
ctx context.Context

View File

@@ -14,7 +14,7 @@ import (
type Widget struct {
view.KeyboardWidget
view.ScrollableWidget
articles []devto.Article
articles []devto.ListedArticle
settings *Settings
err error
}
@@ -59,7 +59,7 @@ func (widget *Widget) Refresh() {
widget.articles = nil
widget.SetItemCount(0)
} else {
var displayArticles []devto.Article
var displayArticles []devto.ListedArticle
var l int
if len(articles) < widget.settings.numberOfArticles {
l = len(articles)