mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 07:55:18 +00:00
incompitable dummy fix
This commit is contained in:
parent
147f1373d4
commit
195f965e24
@ -7,6 +7,7 @@ void main() async {
|
|||||||
final env = Platform.environment;
|
final env = Platform.environment;
|
||||||
final bool hasKey = env.containsKey("SECRET");
|
final bool hasKey = env.containsKey("SECRET");
|
||||||
final val = hasKey ? jsonDecode(env["SECRET"]!) : null;
|
final val = hasKey ? jsonDecode(env["SECRET"]!) : null;
|
||||||
|
print("SECRET VALUE: ${env["SECRET"]}");
|
||||||
if (!hasKey || (hasKey && val is! List)) {
|
if (!hasKey || (hasKey && val is! List)) {
|
||||||
throw Exception(
|
throw Exception(
|
||||||
"'SECRET' Environmental Variable isn't configured properly");
|
"'SECRET' Environmental Variable isn't configured properly");
|
||||||
|
Loading…
Reference in New Issue
Block a user