Skip to content
This repository has been archived by the owner on Jul 28, 2020. It is now read-only.

Commit

Permalink
Igor's review.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrYawe committed Aug 27, 2019
1 parent c4dd799 commit 66e9af1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion lib/zenaton/services/graphql.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require 'net/http'
require 'zenaton/exceptions'

module Zenaton
Expand Down
2 changes: 1 addition & 1 deletion lib/zenaton/traits/zenatonable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def dispatch
end

def schedule(cron)
if cron.blank? || !cron.is_a?(String)
if !cron.is_a?(String) || cron.blank?
raise InvalidArgumentError,
"The cron passed to 'schedule' must be a non empty string"
end
Expand Down

0 comments on commit 66e9af1

Please sign in to comment.