Skip to content

Commit

Permalink
#265 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 15, 2019
1 parent ff52e97 commit 50532e0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@ AllCops:
- 'bin/**/*'
- 'assets/**/*'
DisplayCopNames: true
TargetRubyVersion: 2.5
TargetRubyVersion: 2.6.0

Layout/MultilineOperationIndentation:
Enabled: false
Layout/EmptyLineAfterGuardClause:
Enabled: false
Naming/UncommunicativeMethodParamName:
Expand Down
6 changes: 5 additions & 1 deletion 0pdd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@
raise "Invalid content-type: \"#{request.content_type}\""
end
)
return unless json['ref'] == 'refs/heads/master'
unless json['ref'] == 'refs/heads/master' &&
json['head_commit'] && json['head_commit']['id'] &&
json['repository'] && json['repository']['full_name']
return 'Thanks'
end
name = repo_name(json['repository']['full_name'])
unless ENV['RACK_ENV'] == 'test'
repo = repo(name)
Expand Down

0 comments on commit 50532e0

Please sign in to comment.