Skip to content

Commit

Permalink
Fix case sensitivity in Issue.[isOpen, isClosed]
Browse files Browse the repository at this point in the history
  • Loading branch information
Piinks authored Apr 12, 2024
1 parent f5a565f commit 2340355
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/common/model/issues.dart
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class Issue {
/// The user who closed the issue
User? closedBy;

bool get isOpen => state == 'OPEN';
bool get isClosed => state == 'CLOSED';
bool get isOpen => state.toUpperCase() == 'OPEN';
bool get isClosed => state.toUpperCase() == 'CLOSED';

// The following properties were added to support the Timeline API.

Expand Down

0 comments on commit 2340355

Please sign in to comment.