Skip to content

Commit c437c5b

Browse files
committed
remove import
1 parent 4f7a689 commit c437c5b

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

app/lib/service/download_counts/package_trends.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ double computeTrendScore(List<int> totalDownloads) {
9898
List<double> safeLogTransform(List<int> numbers) {
9999
double myLog(int number) {
100100
if (number <= 0) {
101-
return log(1); // 0.0
101+
return 0.0;
102102
}
103103
return log(number);
104104
}

app/test/service/download_counts/package_trends_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// for details. All rights reserved. Use of this source code is governed by a
33
// BSD-style license that can be found in the LICENSE file.
44

5-
import 'dart:math';
6-
75
import 'package:pub_dev/service/download_counts/package_trends.dart';
86
import 'package:test/test.dart';
97

0 commit comments

Comments
 (0)