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

by new wsl linter
This commit is contained in:
Jarek Kowalski committed 2019-11-26 06:49:49 -08:00
1 parent f4afaec9b5
commit 6217df1a87
166 files changed
+1166 -79

No files matched your search

+2
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")
}