removed 'this' from parameters. Caused it to mess up else
This commit is contained in:
parent
d493438c65
commit
df6a29fac6
1 changed files with 1 additions and 2 deletions
|
@ -8,13 +8,12 @@ namespace Saviour_Backup_System
|
||||||
{
|
{
|
||||||
class tools
|
class tools
|
||||||
{
|
{
|
||||||
public static string Trim(this string value, int maxLength)
|
public static string Trim(string value, int maxLength)
|
||||||
{
|
{
|
||||||
if (value.Length > maxLength)
|
if (value.Length > maxLength)
|
||||||
{
|
{
|
||||||
return "..." + value.Substring(value.Length - (maxLength - 3));
|
return "..." + value.Substring(value.Length - (maxLength - 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue