Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Commit

Permalink
remove unecessary break on empty content
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Apr 26, 2016
1 parent 749e157 commit 00dfec3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions loggers/growl.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@

### Exported functions for use in the app
def notify(content, title=INFO_TITLE, icon=INFO_ICON):
if not content: return

try:
GROWL.notify(
noteType=INFO_TYPE,
Expand All @@ -58,8 +56,6 @@ def notify(content, title=INFO_TITLE, icon=INFO_ICON):


def alert(content, title=ALERT_TITLE, icon=ALERT_ICON):
if not content: return

try:
GROWL.notify(
noteType=ALERT_TYPE,
Expand Down
4 changes: 0 additions & 4 deletions loggers/osxnotifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ def timestamp():

### Exported functions for use in the app
def notify(content, title=INFO_TITLE, icon=None, sound=INFO_SOUND):
if not content: return

notification = NSUserNotification.alloc().init()
notification.setTitle_('{0} @ {1}'.format(title, timestamp()))
notification.setInformativeText_(content)
Expand All @@ -31,8 +29,6 @@ def notify(content, title=INFO_TITLE, icon=None, sound=INFO_SOUND):
NOTIFICATION_CENTER.deliverNotification_(notification)

def alert(content, title=ALERT_TITLE, icon=None, sound=ALERT_SOUND):
if not content: return

notification = NSUserNotification.alloc().init()
notification.setTitle_('{0} @ {1}'.format(title, timestamp()))
notification.setInformativeText_(content)
Expand Down

0 comments on commit 00dfec3

Please sign in to comment.