mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Fix presubmit check for webrtc/base.
Show a warning only when there's something to warn about. TBR=kjellander@webrtc.org NOTRY=True BUG=webrtc:7634 Review-Url: https://codereview.webrtc.org/2974093002 Cr-Commit-Position: refs/heads/master@{#18952}
This commit is contained in:
parent
ea0e08400c
commit
fe53355dcb
1 changed files with 6 additions and 4 deletions
10
PRESUBMIT.py
10
PRESUBMIT.py
|
@ -522,10 +522,12 @@ def _CheckNoChangesToWebRTCBase(input_api, output_api):
|
|||
if 'webrtc/base' in line:
|
||||
problems.append(' %s: %s' % (f.LocalPath(), line_num))
|
||||
|
||||
return [output_api.PresubmitPromptWarning(
|
||||
'webrtc/base is being moved to webrtc/rtc_base (See '
|
||||
'bugs.webrtc.org/7634). Please refer to webrtc/rtc_base instead in the '
|
||||
'following files:\n' + '\n'.join(problems))]
|
||||
if problems:
|
||||
return [output_api.PresubmitPromptWarning(
|
||||
'webrtc/base is being moved to webrtc/rtc_base (See '
|
||||
'bugs.webrtc.org/7634). Please refer to webrtc/rtc_base instead in the '
|
||||
'following files:\n' + '\n'.join(problems))]
|
||||
return []
|
||||
|
||||
|
||||
def _CommonChecks(input_api, output_api):
|
||||
|
|
Loading…
Reference in a new issue