Skip to content

Commit ba104c5

Browse files
committed
style: fix lint issues
1 parent 7d2a14f commit ba104c5

File tree

4 files changed

+16
-16
lines changed

4 files changed

+16
-16
lines changed

sample/Assets/Scripts/AuthenticatedScript.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ public async void GetLinkedAddresses()
165165
{
166166
ShowOutput($"Failed to get linked addresses: {ex.Message}");
167167
}
168-
}
169-
168+
}
169+
170170
/// <summary>
171171
/// Navigates to Link Wallet scene.
172172
/// </summary>

sample/Assets/Scripts/Passport/LinkWalletScript.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ void Start()
3838
/// </summary>
3939
public async void LinkWallet()
4040
{
41-
ShowOutput("Linking wallet...");
42-
41+
ShowOutput("Linking wallet...");
42+
4343
try
4444
{
4545
await Passport.ConnectEvm();
@@ -62,10 +62,10 @@ public async void LinkWallet()
6262
type: TypeInput.text,
6363
walletAddress: WalletAddressInput.text,
6464
signature: SignatureInput.text,
65-
nonce: NonceInput.text);
66-
67-
await apiInstance.LinkWalletV2Async(linkWalletV2Request);
68-
65+
nonce: NonceInput.text);
66+
67+
await apiInstance.LinkWalletV2Async(linkWalletV2Request);
68+
6969
ShowOutput($"Linked external wallet: {WalletAddressInput.text}");
7070
}
7171
catch (ApiException e)

src/Packages/Passport/Runtime/Scripts/Private/Helpers/JsonHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,16 @@ public static string ToJson<T>(this T[] array)
3030
// Need a wrapper to serialise arrays
3131
var wrapper = new Wrapper<T> { Items = array };
3232
var wrapped = JsonUtility.ToJson(wrapper);
33-
33+
3434
// Remove the wrapper
3535
return wrapped.ReplaceFirst("{\"Items\":", "").TrimEnd('}');
3636
}
3737

3838
private static string ReplaceFirst(this string source, string search, string replace)
3939
{
4040
var pos = source.IndexOf(search);
41-
return pos < 0
42-
? source
41+
return pos < 0
42+
? source
4343
: source.Substring(0, pos) + replace + source.Substring(pos + search.Length);
4444
}
4545

src/Packages/Passport/Tests/Runtime/Scripts/Helpers/JsonHelpersTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ public void ArrayToJson()
1212
{
1313
var array = new[] { "a", "b", "c" };
1414
Assert.AreEqual("[\"a\",\"b\",\"c\"]", array.ToJson());
15-
15+
1616
array = new[] { "Items" };
1717
Assert.AreEqual("[\"Items\"]", array.ToJson());
18-
18+
1919
array = new[] { "{Items:" };
2020
Assert.AreEqual("[\"{Items:\"]", array.ToJson());
21-
22-
array = new string[] {};
21+
22+
array = new string[] { };
2323
Assert.AreEqual("[]", array.ToJson());
2424
}
25-
25+
2626
[Test]
2727
public void DictionaryToJson()
2828
{

0 commit comments

Comments
 (0)