Refactoring
This commit is contained in:
parent
abfd03be7a
commit
4743aa706e
@ -28,7 +28,6 @@ namespace Rehau.Sku.Assist
|
|||||||
|
|
||||||
return GetProduct(documentTask.Result);
|
return GetProduct(documentTask.Result);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static IProduct GetProduct(IDocument document)
|
public static IProduct GetProduct(IDocument document)
|
||||||
{
|
{
|
||||||
string script = document
|
string script = document
|
||||||
@ -53,7 +52,6 @@ namespace Rehau.Sku.Assist
|
|||||||
|
|
||||||
return product;
|
return product;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static object GetProduct(string request, ProductField field)
|
public static object GetProduct(string request, ProductField field)
|
||||||
{
|
{
|
||||||
IProduct product;
|
IProduct product;
|
||||||
@ -94,7 +92,6 @@ namespace Rehau.Sku.Assist
|
|||||||
return ExcelError.ExcelErrorValue;
|
return ExcelError.ExcelErrorValue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool IsRehauSku(this string line)
|
public static bool IsRehauSku(this string line)
|
||||||
{
|
{
|
||||||
return Regex.IsMatch(line, @"\d{11}") &&
|
return Regex.IsMatch(line, @"\d{11}") &&
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
using ExcelDna.Registration;
|
using ExcelDna.Registration;
|
||||||
using Microsoft.Win32;
|
using Microsoft.Win32;
|
||||||
using System.Net.Http;
|
using System.Net.Http;
|
||||||
using System.IO;
|
|
||||||
|
|
||||||
namespace Rehau.Sku.Assist
|
namespace Rehau.Sku.Assist
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user