Skip to content

Commit

Permalink
Fix Lint Errors (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
meeragjoshi authored Nov 3, 2023
1 parent bb867dd commit 6e959b5
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# include: package:lints/recommended.yaml
include: package:very_good_analysis/analysis_options.yaml
include: package:lints/recommended.yaml
# include: package:very_good_analysis/analysis_options.yaml

analyzer:
exclude:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ extension NftInfosGetterX on Map<int, NftWalletInfoWithNftInfos> {
value.nftInfos.map((nftInfo) => nftInfo.launcherId).toList(),
),
);

List<Bytes> get launcherIds => launcherIdsMap.values.toList().flatten();
}

extension NftInfosListGetterX on List<NftWalletInfoWithNftInfos> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,10 +149,8 @@ class FullNodeWalletConnectRequestHandler
final nftRecordsToAdd = nftRecords
.where(
(nftRecord) =>
!currentNftWallets.launcherIdsMap
.containsValue(nftRecord.launcherId) ||
nftWalletsToRemove.launcherIdsMap
.containsValue(nftRecord.launcherId) ||
!currentNftWallets.launcherIds.contains(nftRecord.launcherId) ||
nftWalletsToRemove.launcherIds.contains(nftRecord.launcherId) ||
(nftWalletsWithNullDid.isNotEmpty &&
nftWalletsWithNullDid.nftInfos
.map((e) => e.launcherId)
Expand Down
3 changes: 1 addition & 2 deletions lib/src/offer/service/cat_offer_service_base.dart
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,7 @@ class OfferWalletService {
CoinPrototype coin,
CoinSpend parentSpend,
Program innerRoyaltySolution,
)
makeSolutionFromInnerSolution,
) makeSolutionFromInnerSolution,
) {
var royaltyPayments =
List<RoyaltyPaymentWithLauncherId>.from(royaltyPayments_);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ Future<T> spawnAndWaitForIsolateWithProgressUpdates<T, R>({
required FutureOr<Map<String, dynamic>> Function(
R taskArgument,
void Function(double progress) onProgressUpdate,
)
isolateTask,
) isolateTask,
required FutureOr<T> Function(Map<String, dynamic> taskResultJson)
handleTaskCompletion,
}) async {
Expand Down Expand Up @@ -110,8 +109,7 @@ Future<void> Function(TaskArgumentAndSendPort<R> taskArgumentAndSendPort)
FutureOr<Map<String, dynamic>> Function(
R taskArgument,
void Function(double progress) onProgressUpdate,
)
task,
) task,
) {
return (TaskArgumentAndSendPort<R> taskArgumentAndSendPort) async {
final taskResultJson = await task(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ dependencies:
yaml: ^3.1.1

dev_dependencies:
lints: ^1.0.0
lints: ^2.0.1
rps: ^0.6.3
test: ^1.19.3
test_process: ^2.1.0
Expand Down

0 comments on commit 6e959b5

Please sign in to comment.