From 6df4a746f11db3451914ffb58633cd675fa98502 Mon Sep 17 00:00:00 2001 From: Oliver Sauder Date: Tue, 22 May 2018 11:55:00 +0200 Subject: [PATCH] Clarify doc strings --- aptly/interfaces.go | 2 +- deb/remote.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aptly/interfaces.go b/aptly/interfaces.go index 29a30566..f272f707 100644 --- a/aptly/interfaces.go +++ b/aptly/interfaces.go @@ -130,7 +130,7 @@ type Downloader interface { DownloadWithChecksum(ctx context.Context, url string, destination string, expected *utils.ChecksumInfo, ignoreMismatch bool, maxTries int) error // GetProgress returns Progress object GetProgress() Progress - // GetLength of given url + // GetLength returns size by heading object with url GetLength(ctx context.Context, url string) (int64, error) } diff --git a/deb/remote.go b/deb/remote.go index 2a862858..ebb1ce5e 100644 --- a/deb/remote.go +++ b/deb/remote.go @@ -460,7 +460,7 @@ func (repo *RemoteRepo) DownloadPackageIndexes(progress aptly.Progress, d aptly. isInstaller := kind == PackageTypeInstaller if err != nil { if _, ok := err.(*http.NoCandidateFoundError); isInstaller && ok { - // checking of gpg file is only needed when checksums matches are required. + // checking if gpg file is only needed when checksums matches are required. // otherwise there actually has been no candidate found and we can continue if ignoreMismatch { continue