Skip to content

Commit

Permalink
Remove stray Println statements closes #54
Browse files Browse the repository at this point in the history
  • Loading branch information
e-gineer committed Dec 13, 2023
1 parent d2a427c commit 6de9281
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions hackernews/item.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package hackernews

import (
"context"
"fmt"

"github.com/PaulRosset/go-hacknews"

Expand Down Expand Up @@ -65,9 +64,7 @@ func getItem(ctx context.Context, d *plugin.QueryData, h *plugin.HydrateData) (i
return nil, err
}
if len(posts) <= 0 {
fmt.Println("none:", id)
return hacknews.Post{Id: id}, nil
}
fmt.Println(posts[0].Id, posts[0].By)
return posts[0], nil
}

0 comments on commit 6de9281

Please sign in to comment.