From 2aa69540142e702cc30152efabd44fd5d7b5ea38 Mon Sep 17 00:00:00 2001 From: Nicholas Shahan Date: Thu, 16 Apr 2020 16:16:24 +0000 Subject: [PATCH] Fix presubmit file path comparison I recently added this presubmit to verify changes get replicated between versions of the SDK and the paths of the current SDK didn't get created correctly causing it to warn even when you correctly replicated the changes. Change-Id: If69e0375dfe097e0210c4249d77b49f0c3537a2c Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/143640 Reviewed-by: Alexander Thomas Commit-Queue: Nicholas Shahan --- PRESUBMIT.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PRESUBMIT.py b/PRESUBMIT.py index 4cbffadba94..60c449a1e5a 100644 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -44,7 +44,7 @@ def _CheckSdkDdcRuntimeSync(input_api, output_api): runtime_lib = 'lib/_internal/js_dev_runtime/private/ddc_runtime/' for nnbd_file in files: if nnbd_file.startswith('sdk_nnbd/' + runtime_lib): - file = 'sdk/' + runtime_lib + nnbd_file[4:] + file = 'sdk/' + nnbd_file[9:] if not file in files: unsynchronized_files.append(file) if unsynchronized_files: