From 84051e84b34b3f8ae792578ae8066bfd40496592 Mon Sep 17 00:00:00 2001 From: Cyrus Najmabadi Date: Thu, 14 Dec 2017 15:41:53 -0800 Subject: [PATCH] Make linter happy. --- pkg/engine/plan.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkg/engine/plan.go b/pkg/engine/plan.go index c9d479c0b..480acc054 100644 --- a/pkg/engine/plan.go +++ b/pkg/engine/plan.go @@ -1016,8 +1016,10 @@ var ( shaRegexp = regexp.MustCompile("__[a-zA-Z0-9]{40}") withRegexp = regexp.MustCompile(` with\({ .* }\) {`) environmentRegexp = regexp.MustCompile(` }\).apply\(.*\).apply\(this, arguments\);`) - preambleRegexp = regexp.MustCompile(`function __shaHash\(\) {\n return \(function\(\) {\n with \(__closure\) {\n\nreturn \(`) - postambleRegexp = regexp.MustCompile(`\)\n\n }\n }\).apply\(__environment\).apply\(this, arguments\);\n}`) + preambleRegexp = regexp.MustCompile( + `function __shaHash\(\) {\n return \(function\(\) {\n with \(__closure\) {\n\nreturn \(`) + postambleRegexp = regexp.MustCompile( + `\)\n\n }\n }\).apply\(__environment\).apply\(this, arguments\);\n}`) ) // massageText takes the text for a function and cleans it up a bit to make the user visible diffs