Skip to content

Commit d96f355

Browse files
committed
+ bugfix (wrong null check)
1 parent 1894fd0 commit d96f355

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ public static void main(String... args) throws IOException {
286286
props.get("github.profile"), e.getMessage()));
287287
}
288288

289-
if (profileCommits != null ||
289+
if (profileCommits != null &&
290290
profileCommits.getMax() > commits.getMax()) {
291291
commits.multiplyStats(profileCommits.getMax() / 4d);
292292
commits.substractStats(profileCommits);

wzorzec.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
repository.name=pattern
2-
github.profile=codeleventh
3-
commit.author=codeleventh
4-
commit.email=eleventh@vechnost-eto-ne-srok.ru
2+
github.profile=johndoe
3+
commit.author=John Doe
4+
commit.email=johndoe@gmail.com

0 commit comments

Comments
 (0)