Skip to content

Commit

Permalink
Removed unused parameter DeviceClient
Browse files Browse the repository at this point in the history
  • Loading branch information
PKMNPlatin committed Jan 28, 2024
1 parent c4711d4 commit ccbf20c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ async function syncFavorites(client: DeviceClient) {
} else {
// remove favorites from quest
questLocalPlayer.favoritesLevelIds = onlyOnQuestFavorites;
await updateQuestPlayerData(sync, questPlayerData, client);
await updateQuestPlayerData(sync, questPlayerData);
}
}

Expand Down Expand Up @@ -226,7 +226,7 @@ async function syncFavorites(client: DeviceClient) {
if (action === 'quest') {
// add favorites to quest
questLocalPlayer.favoritesLevelIds = [...questFavorites, ...onlyOnPcFavorites];
await updateQuestPlayerData(sync, questPlayerData, client);
await updateQuestPlayerData(sync, questPlayerData);
} else {
// remove favorites from pc
pcLocalPlayer.favoritesLevelIds = onlyOnPcFavorites;
Expand Down
2 changes: 1 addition & 1 deletion src/sync/playerData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function getQuestPlayerData(sync: Sync): Promise<PlayerData> {
return JSON.parse(data.trim());
}

export async function updateQuestPlayerData(sync: Sync, playerData: PlayerData, client: DeviceClient) {
export async function updateQuestPlayerData(sync: Sync, playerData: PlayerData) {
const data = stringToStream(JSON.stringify(playerData));
await sync.push(data, PLAYERDATA_PATH_QUEST);
}
Expand Down

0 comments on commit ccbf20c

Please sign in to comment.