From 136713dc1ee18f45eebb5bd4d1cde51e4c713b48 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Thu, 24 Jan 2019 15:30:55 +0100 Subject: [PATCH] Github: Remove unnecessary braces --- lib/apis/github.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/apis/github.dart b/lib/apis/github.dart index 8e07b6a4..4db2ffab 100644 --- a/lib/apis/github.dart +++ b/lib/apis/github.dart @@ -41,7 +41,7 @@ class GitHub { Future _getAccessCode(String authCode) async { var url = - "https://github.com/login/oauth/access_token?client_id=${_clientID}&client_secret=${_clientSecret}&code=${authCode}"; + "https://github.com/login/oauth/access_token?client_id=$_clientID&client_secret=$_clientSecret&code=$authCode"; var response = await http.post(url); if (response.statusCode != 200) { @@ -72,7 +72,7 @@ class GitHub { } var url = - "https://api.github.com/user/repos?page=1&per_page=100&access_token=${_accessCode}"; + "https://api.github.com/user/repos?page=1&per_page=100&access_token=$_accessCode"; var response = await http.get(url); if (response.statusCode != 200) { @@ -101,7 +101,7 @@ class GitHub { throw "GitHub Access Code Missing"; } - var url = "https://api.github.com/user/repos?access_token=${_accessCode}"; + var url = "https://api.github.com/user/repos?access_token=$_accessCode"; Map data = { 'name': name, 'private': true, @@ -132,7 +132,7 @@ class GitHub { } var url = - "https://api.github.com/repos/$repo/keys?access_token=${_accessCode}"; + "https://api.github.com/repos/$repo/keys?access_token=$_accessCode"; Map data = { 'title': "GitJournal",