lint: switched to 1.21 and fixed a ton of whitespace issues discovered

by new wsl linter
This commit is contained in:
Jarek Kowalski
2019-11-25 23:24:59 -08:00
parent f4afaec9b5
commit 6217df1a87
166 changed files with 1166 additions and 79 deletions

View File

@@ -25,6 +25,7 @@ func runDiffCommand(ctx context.Context, rep *repo.Repository) error {
if err != nil {
return err
}
oid2, err := parseObjectID(ctx, rep, *diffSecondObjectPath)
if err != nil {
return err
@@ -32,6 +33,7 @@ func runDiffCommand(ctx context.Context, rep *repo.Repository) error {
isDir1 := strings.HasPrefix(string(oid1), "k")
isDir2 := strings.HasPrefix(string(oid2), "k")
if isDir1 != isDir2 {
return errors.New("arguments do diff must both be directories or both non-directories")
}