Skip to content

Commit a902b84

Browse files
committed
Formatting
1 parent 428a3e8 commit a902b84

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/libfetchers/git-lfs-fetch.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ static std::string getLfsApiToken(const ParsedURL & url)
5252
if (output.empty())
5353
throw Error(
5454
"git-lfs-authenticate: no output (cmd: ssh %s git-lfs-authenticate %s download)",
55-
url.authority.value_or(""), url.path);
55+
url.authority.value_or(""),
56+
url.path);
5657

5758
auto queryResp = nlohmann::json::parse(output);
5859
if (!queryResp.contains("header"))
@@ -237,8 +238,8 @@ void Fetch::fetch(
237238
}
238239

239240
Path cacheDir = getCacheDir() + "/git-lfs";
240-
std::string key =
241-
hashString(HashAlgorithm::SHA256, pointerFilePath.rel()).to_string(HashFormat::Base16, false) + "/" + pointer->oid;
241+
std::string key = hashString(HashAlgorithm::SHA256, pointerFilePath.rel()).to_string(HashFormat::Base16, false)
242+
+ "/" + pointer->oid;
242243
Path cachePath = cacheDir + "/" + key;
243244
if (pathExists(cachePath)) {
244245
debug("using cache entry %s -> %s", key, cachePath);

0 commit comments

Comments
 (0)