mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 02:07:39 +08:00
Fix flutter analyze
Proper type checking is awesome.
This commit is contained in:
@ -20,8 +20,12 @@ class OAuthAppState extends State<OAuthApp> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
githost = createGitHost(GitHostType.GitHub);
|
githost = createGitHost(GitHostType.GitHub);
|
||||||
githost.init(() {
|
githost.init((GitHostException e) {
|
||||||
print("GitHost initialized and has access code");
|
if (e != null) {
|
||||||
|
print("Got exeception: $e");
|
||||||
|
} else {
|
||||||
|
print("GitHost initialized and has access code");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user