Skip to content

Commit 796ccc7

Browse files
committed
Simplify conditional.
1 parent dc61f47 commit 796ccc7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

ci/danger/Dangerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ end
7676
# Warn if a changelog is left out on a non-trivial PR that has modified
7777
# SDK source files.
7878
#
79-
if has_sdk_changes()
80-
if !has_changelog_changes && !declared_trivial
81-
warning = "Did you forget to add a changelog entry? (Add the 'no-changelog'"\
82-
" label to the PR to silence this warning.)"
83-
warn(warning)
84-
end
79+
if has_sdk_changes() && !has_changelog_changes && !declared_trivial
80+
warning = "Did you forget to add a changelog entry? (Add the 'no-changelog'"\
81+
" label to the PR to silence this warning.)"
82+
warn(warning)
8583
end

0 commit comments

Comments
 (0)