Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions commands/output/output.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,16 @@ func showThread(r *review.Review, thread review.CommentThread) error {

// showSubThread prints the given comment (sub)thread, indented by the given prefix string.
func showSubThread(r *review.Review, thread review.CommentThread, indent string) error {
comment := thread.Comment
statusString := "fyi"
if thread.Resolved != nil {
if *thread.Resolved {
if comment.Resolved != nil {
if *comment.Resolved {
statusString = "lgtm"
} else {
statusString = "needs work"
}
}
comment := thread.Comment

threadHash, err := comment.Hash()
if err != nil {
return err
Expand Down