diff options
author | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-05 21:25:30 +0300 |
---|---|---|
committer | Sergey Chebotar <s.chebotar@gmail.com> | 2021-12-05 21:25:30 +0300 |
commit | 8bc62a6f024ae2c7d346fe3570c9c0241a773ec5 (patch) | |
tree | 8677b087f0ac6c94dc352bd569c4d56f98fd8aae | |
parent | 4d57775ffcedf2f36021fd7fe057921db2ae9bda (diff) |
Refactoring
-rw-r--r-- | Source/Assistant/SkuAssist.cs | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/Source/Assistant/SkuAssist.cs b/Source/Assistant/SkuAssist.cs index a0195ba..bd757b0 100644 --- a/Source/Assistant/SkuAssist.cs +++ b/Source/Assistant/SkuAssist.cs @@ -29,12 +29,13 @@ namespace Rehau.Sku.Assist return GetProduct(documentTask.Result); } - public static IProduct GetProduct(IDocument d) + public static IProduct GetProduct(IDocument document) { - string script = d.Scripts - .Where(s => s.InnerHtml.Contains("dataLayer")) - .First() - .InnerHtml; + string script = document + .Scripts + .Where(s => s.InnerHtml.Contains("dataLayer")) + .First() + .InnerHtml; string json = script .Substring(script.IndexOf("push(") + 5) |