We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 457163f commit d1b5bfaCopy full SHA for d1b5bfa
src/Qiniu/Util/Base64.cs
@@ -57,7 +57,7 @@ public static byte[] UrlsafeBase64Decode(string text)
57
public static string GetEncodedObjectName(string key)
58
{
59
string encodedObjectName = "~";
60
- if (key != "")
+ if (!string.IsNullOrEmpty(key))
61
62
encodedObjectName = UrlSafeBase64Encode(key);
63
}
0 commit comments