Skip to content

Commit d1b5bfa

Browse files
committed
修改comment问题
1 parent 457163f commit d1b5bfa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Qiniu/Util/Base64.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public static byte[] UrlsafeBase64Decode(string text)
5757
public static string GetEncodedObjectName(string key)
5858
{
5959
string encodedObjectName = "~";
60-
if (key != "")
60+
if (!string.IsNullOrEmpty(key))
6161
{
6262
encodedObjectName = UrlSafeBase64Encode(key);
6363
}

0 commit comments

Comments
 (0)