From 5663410c4591c37af25e1eecc10bc8580f2e5051 Mon Sep 17 00:00:00 2001 From: Jonas Chromik Date: Mon, 14 Mar 2016 12:50:39 +0100 Subject: [PATCH] minor changes --- lib/travis/api/v3/services/cron/create.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/travis/api/v3/services/cron/create.rb b/lib/travis/api/v3/services/cron/create.rb index e676c158..494f263e 100644 --- a/lib/travis/api/v3/services/cron/create.rb +++ b/lib/travis/api/v3/services/cron/create.rb @@ -6,8 +6,8 @@ module Travis::API::V3 def run! raise LoginRequired unless access_control.logged_in? or access_control.full_access? raise InsufficientAccess unless Travis::Features.feature_active?(:cron) - raise NotFound unless repository = find(:repository) - raise NotFound unless branch = find(:branch, repository) + raise NotFound unless repository = find(:repository) + raise NotFound unless branch = find(:branch, repository) raise Error.new('Invalid value for interval. Interval must be "daily", "weekly" or "monthly"!', status: 422) unless ["daily", "weekly", "monthly"].include?(params["interval"]) access_control.permissions(repository).create_cron!