From 38ca03bd1613bbfb368f45dabbe21b109aba0162 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Sun, 18 Dec 2022 10:20:11 -0800 Subject: [PATCH] spotlessApply --- build.gradle | 2 +- .../diffplug/spotless/extra/GitRatchet.java | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/build.gradle b/build.gradle index 5766e6b85e..f9e3d0de21 100644 --- a/build.gradle +++ b/build.gradle @@ -18,4 +18,4 @@ spotless { trimTrailingWhitespace() endWithNewline() } -} +} \ No newline at end of file diff --git a/lib-extra/src/main/java/com/diffplug/spotless/extra/GitRatchet.java b/lib-extra/src/main/java/com/diffplug/spotless/extra/GitRatchet.java index 3b0e3c06ed..4ba59e6aa5 100644 --- a/lib-extra/src/main/java/com/diffplug/spotless/extra/GitRatchet.java +++ b/lib-extra/src/main/java/com/diffplug/spotless/extra/GitRatchet.java @@ -1,5 +1,5 @@ /* - * Copyright 2020-2021 DiffPlug + * Copyright 2020-2022 DiffPlug * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -138,7 +138,7 @@ private static boolean worktreeIsCleanCheckout(TreeWalk treeWalk) { private final static int WORKDIR = 2; Map gitRoots = new HashMap<>(); - Map gitRepositories = new HashMap<>(); + Map gitRepositories = new HashMap<>(); Table rootTreeShaCache = HashBasedTable.create(); Map subtreeShaCache = new HashMap<>(); @@ -192,13 +192,13 @@ private static boolean isGitRoot(File dir) { } Repository createRepo(File dir) throws IOException { - File dotGitDir = GitWorkarounds.getDotGitDir(dir); - Repository repo = gitRepositories.get(dotGitDir); - if (repo == null) { - repo = FileRepositoryBuilder.create(dotGitDir); - gitRepositories.put(dotGitDir, repo); - } - return repo; + File dotGitDir = GitWorkarounds.getDotGitDir(dir); + Repository repo = gitRepositories.get(dotGitDir); + if (repo == null) { + repo = FileRepositoryBuilder.create(dotGitDir); + gitRepositories.put(dotGitDir, repo); + } + return repo; } /**