Skip to content

Commit

Permalink
removes condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hayribakici committed Jul 13, 2024
1 parent f582c8e commit 86f928a
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/src/spotify_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,8 @@ class SpotifyClient with http.BaseClient {
set enableLogging(enable) => _enableLogging = enable;

late Logger _logger;
set logger(value) {
// don't allow to initialize a Logger when logging is disabled.
if (!_enableLogging) {
return;
}
_logger = value ?? Logger();
}
/// sets a custom logger
set logger(value) => _logger = value ?? Logger();

LoggingDetail _detail = LoggingDetail.simple;

Expand Down

0 comments on commit 86f928a

Please sign in to comment.