mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-13 16:05:18 +00:00
fix: Clean LSP suggestions.
This commit is contained in:
parent
e9479b1dcf
commit
e6479c2841
@ -98,12 +98,12 @@ class AppLogger {
|
|||||||
// which is the specification to store application logs on Linux.
|
// which is the specification to store application logs on Linux.
|
||||||
// See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
// See https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
|
||||||
// TODO: Use path_provider once it supports XDG_STATE_HOME
|
// TODO: Use path_provider once it supports XDG_STATE_HOME
|
||||||
if (bool.hasEnvironment("XDG_STATE_HOME")) {
|
if (const bool.hasEnvironment("XDG_STATE_HOME")) {
|
||||||
String xdgStateHomeRaw = String.fromEnvironment("XDG_STATE_HOME");
|
String xdgStateHomeRaw = const String.fromEnvironment("XDG_STATE_HOME");
|
||||||
if (!xdgStateHomeRaw.isEmpty) {
|
if (xdgStateHomeRaw.isNotEmpty) {
|
||||||
return xdgStateHomeRaw;
|
return xdgStateHomeRaw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return join(String.fromEnvironment("HOME"), ".local", "state");
|
return join(const String.fromEnvironment("HOME"), ".local", "state");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user