Skip to content

Commit

Permalink
dry
Browse files Browse the repository at this point in the history
  • Loading branch information
alator21 committed Dec 6, 2024
1 parent 64b16a4 commit 3eb41dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lastfm/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const LAST_FM_API: {
* Initialize the last fm integration with your API key.
*/
export function initializeLastFmApi(apiKey: string) {
if (LAST_FM_API.apiKey !== 'NOT_INITIALIZED') {
if (isApiInitialized()) {
throw new Error('Last FM API is already initialized');
}
LAST_FM_API.apiKey = apiKey;
Expand Down

0 comments on commit 3eb41dd

Please sign in to comment.