From 46b5ec7c221c97548bdf9eedca38c84ad6e452af Mon Sep 17 00:00:00 2001 From: Kingkor Roy Tirtho Date: Thu, 28 Apr 2022 10:49:27 +0600 Subject: [PATCH] [CD] --- .github/workflows/release-build.yml | 2 +- lib/helpers/getLyrics.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index caa3ac66..1e4b975e 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -216,7 +216,7 @@ jobs: uses: dawidd6/action-get-tag@v1 with: strip_v: true - - run: sudo apt-get tree -y + - run: sudo apt-get install tree -y - run: tree . - run: | python3 spotube/scripts/update_flathub_version.py ${{ steps.tag.outputs.tag }} diff --git a/lib/helpers/getLyrics.dart b/lib/helpers/getLyrics.dart index cc347b55..7dbf171b 100644 --- a/lib/helpers/getLyrics.dart +++ b/lib/helpers/getLyrics.dart @@ -90,7 +90,7 @@ Future searchSong( String reqUrl = "$searchUrl${Uri.encodeComponent(song)}"; Map headers = {"Authorization": 'Bearer $apiKey'}; - var response = await http.get( + final response = await http.get( Uri.parse(authHeader ? reqUrl : "$reqUrl&access_token=$apiKey"), headers: authHeader ? headers : null, );