Skip to content

Commit cce9bb3

Browse files
committed
chained methods reformat
1 parent 230adac commit cce9bb3

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

source/lib/login.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ export function loadLoginCredentials(): Promise<{
1818
username?: string,
1919
password?: string,
2020
}> {
21-
return Keychain.getInternetCredentials(
22-
SIS_LOGIN_CREDENTIAL_KEY,
23-
).catch(() => ({}))
21+
return Keychain.getInternetCredentials(SIS_LOGIN_CREDENTIAL_KEY).catch(
22+
() => ({}),
23+
)
2424
}
2525
export function clearLoginCredentials() {
26-
return Keychain.resetInternetCredentials(
27-
SIS_LOGIN_CREDENTIAL_KEY,
28-
).catch(() => ({}))
26+
return Keychain.resetInternetCredentials(SIS_LOGIN_CREDENTIAL_KEY).catch(
27+
() => ({}),
28+
)
2929
}
3030

3131
export async function isLoggedIn(): Promise<boolean> {

source/views/student-orgs/list.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ export class StudentOrgsView extends React.Component {
9797
}
9898

9999
fetchData = async () => {
100-
const responseData: StudentOrgType[] = await fetchJson(
101-
orgsUrl,
102-
).catch(err => {
103-
reportNetworkProblem(err)
104-
this.setState(() => ({error: true}))
105-
return []
106-
})
100+
const responseData: StudentOrgType[] = await fetchJson(orgsUrl).catch(
101+
err => {
102+
reportNetworkProblem(err)
103+
this.setState(() => ({error: true}))
104+
return []
105+
},
106+
)
107107

108108
const sortableRegex = /^(St\.? Olaf(?: College)?|The) +/i
109109
const withSortableNames = responseData.map(item => {

0 commit comments

Comments
 (0)