Permalink
Browse files

remove useless checks

if it's an object of another class, we lose anyway
  • Loading branch information...
1 parent b95d2c7 commit 9252c7d80989b7b54a4ba5deb31a9663a2bcd759 @sigma committed Feb 27, 2013
Showing with 3 additions and 10 deletions.
  1. +3 −10 gh-issues.el
View
@@ -285,24 +285,17 @@
;;; helpers
(defun gh-issues--issue-id (issue-or-issue-id)
- (if (and (eieio-object-p issue-or-issue-id)
- (eq (class-of issue-or-issue-id)
- gh-issues-issue))
+ (if (eieio-object-p issue-or-issue-id)
(oref issue-or-issue-id id)
issue-or-issue-id))
(defun gh-issues--milestone-id (milestone-or-milestone-id)
- (if (and (eieio-object-p milestone-or-milestone-id)
- (eq (class-of milestone-or-milestone-id)
- gh-issues-milestone))
+ (if (eieio-object-p milestone-or-milestone-id)
(oref milestone-or-milestone-id id)
milestone-or-milestone-id))
(defun gh-issues--label-name (label-or-label-name)
- (if (and
- (eieio-object-p label-or-label-name)
- (eq (class-of label-or-label-name)
- gh-issues-label))
+ (if (eieio-object-p label-or-label-name)
(oref label-or-label-name name)
label-or-label-name))

0 comments on commit 9252c7d

Please sign in to comment.