mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-28 01:45:55 +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();
|
||||
|
||||
githost = createGitHost(GitHostType.GitHub);
|
||||
githost.init(() {
|
||||
print("GitHost initialized and has access code");
|
||||
githost.init((GitHostException e) {
|
||||
if (e != null) {
|
||||
print("Got exeception: $e");
|
||||
} else {
|
||||
print("GitHost initialized and has access code");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user