Skip to content

Commit b58445a

Browse files
committed
Update Command.cs
1 parent 9b57551 commit b58445a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

AndroidLib/Classes/Util/Command.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,9 @@ internal static string RunProcessReturnOutput(string executable, string argument
8787
}
8888
}
8989
string strReturn = "";
90+
/* It's more accurate to check for length of a string when we are expecting an empty string after calling Trim().
91+
- * Submitted By: Omar Bizreh [DeepUnknown from Xda-Developers.com]
92+
- */
9093
if (error.ToString().Trim().Length.Equals(0))
9194
strReturn = output.ToString().Trim();
9295
else
@@ -155,6 +158,9 @@ internal static string RunProcessReturnOutput(string executable, string argument
155158
}
156159
}
157160
string strReturn = "";
161+
/* It's more accurate to check for length of a string when we are expecting an empty string after calling Trim().
162+
- * Submitted By: Omar Bizreh [DeepUnknown from Xda-Developers.com]
163+
- */
158164
if (error.ToString().Trim().Length.Equals(0) || forceRegular)
159165
strReturn = output.ToString().Trim();
160166
else

0 commit comments

Comments
 (0)