Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
Eliminate use of firstNonNull()
Browse files Browse the repository at this point in the history
  • Loading branch information
cbracken committed Nov 18, 2015
1 parent e19f9ed commit 245cce9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion lib/collection.dart
Expand Up @@ -18,7 +18,6 @@ library quiver.collection;
import 'dart:collection';
import 'dart:math';

import 'package:quiver/core.dart';
import 'package:quiver/iterables.dart';

part 'src/bimap.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/src/lru_map.dart
Expand Up @@ -64,7 +64,7 @@ class LinkedLruHashMap<K, V> implements LruMap<K, V> {
LinkedLruHashMap._fromMap(this._entries, {int maximumSize})
// This pattern is used instead of a default value because we want to
// be able to respect null values coming in from MapCache.lru.
: _maximumSize = firstNonNull(maximumSize, _DEFAULT_MAXIMUM_SIZE);
: _maximumSize = maximumSize ?? _DEFAULT_MAXIMUM_SIZE;

/// Adds all key-value pairs of [other] to this map.
///
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Expand Up @@ -14,7 +14,7 @@ authors:
description: A collection of collections classes for Dart.
homepage: https://github.com/QuiverDart/quiver_collection
environment:
sdk: '>=1.8.0 <2.0.0'
sdk: '>=1.12.0 <2.0.0'
dependencies:
quiver: '>=0.21.4 <0.22.0'
dev_dependencies:
Expand Down

0 comments on commit 245cce9

Please sign in to comment.