Skip to content

Commit b43ccab

Browse files
committed
fix: format
1 parent 2a16cfc commit b43ccab

File tree

4 files changed

+18
-21
lines changed

4 files changed

+18
-21
lines changed

content/best-practices/ios-tips.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ For example:
1616
```ts
1717
let applePayController: PKPaymentAuthorizationViewController
1818

19-
applePayController = PKPaymentAuthorizationViewController.alloc().initWithPaymentRequest(
20-
paymentRequest
21-
)
22-
applePayController.delegate = PKPaymentAuthorizationViewControllerDelegateImpl.initWithOwner(
23-
this
24-
)
19+
applePayController =
20+
PKPaymentAuthorizationViewController.alloc().initWithPaymentRequest(
21+
paymentRequest
22+
)
23+
applePayController.delegate =
24+
PKPaymentAuthorizationViewControllerDelegateImpl.initWithOwner(this)
2525
```
2626

2727
- **GOOD**
@@ -30,11 +30,11 @@ applePayController.delegate = PKPaymentAuthorizationViewControllerDelegateImpl.i
3030
let applePayController: PKPaymentAuthorizationViewController
3131
let applePayControllerDelegate: PKPaymentAuthorizationViewControllerDelegateImpl
3232

33-
applePayController = PKPaymentAuthorizationViewController.alloc().initWithPaymentRequest(
34-
paymentRequest
35-
)
36-
applePayControllerDelegate = PKPaymentAuthorizationViewControllerDelegateImpl.initWithOwner(
37-
this
38-
)
33+
applePayController =
34+
PKPaymentAuthorizationViewController.alloc().initWithPaymentRequest(
35+
paymentRequest
36+
)
37+
applePayControllerDelegate =
38+
PKPaymentAuthorizationViewControllerDelegateImpl.initWithOwner(this)
3939
applePayController.delegate = applePayControllerDelegate
4040
```

content/best-practices/platform-file-split-or-not.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ Using "platform conditionals":
1313

1414
```ts
1515
if (isIOS) {
16-
// handle ios
16+
// handle ios
1717
} else if (isAndroid) {
18-
// handle android
18+
// handle android
1919
}
2020
```
2121

content/core/tracing.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ The following steps outline the basic usage of the Trace class. Steps 1 and 2 sh
2020
// Or, add multiple categories.
2121
Trace.addCategories('categ1, categ2')
2222
// Or, combine the default Trace categories with your own additional categories.
23-
Trace.setCategories(Trace.categories.concat("category1","category2"))
23+
Trace.setCategories(Trace.categories.concat('category1', 'category2'))
2424
```
2525

2626
When writing a trace message, if you don't set a category, or if the category you pass to `Trace.write()` has not been previously added using the above commands, the message will not be written.
@@ -37,14 +37,14 @@ The following steps outline the basic usage of the Trace class. Steps 1 and 2 sh
3737
// Add a trace message
3838
Trace.write('This is a simple message', 'category')
3939
// Add a trace message with a given message type
40-
Trace.write('This is an error message', 'category2'. Trace.messageType.error)
40+
Trace.write('This is an error message', 'category2'.Trace.messageType.error)
4141
```
4242

4343
4. When your app is in production, you can now simply disable tracing and all `Trace.write()` calls will be ignored.
4444

4545
```ts
4646
if (!__DEV__) {
47-
Trace.disable()
47+
Trace.disable()
4848
}
4949
```
5050

@@ -74,7 +74,7 @@ const TimestampTraceWriter: TraceWriter = {
7474
console.log(`${timestamp} [${category}] ${message}`)
7575
return
7676
}
77-
}
77+
},
7878
}
7979
```
8080

content/guide/accessibility.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,3 @@ The following are the platforms tools for debugging accessibility in your app:
150150

151151
- iOS: [Accessibility Inspect](https://developer.apple.com/library/archive/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTestingApps.html)
152152
- Android: [Test your app's accessibility](https://developer.android.com/guide/topics/ui/accessibility/testing)
153-
154-
155-

0 commit comments

Comments
 (0)