Skip to content

Commit

Permalink
Remove unlogical branch
Browse files Browse the repository at this point in the history
  • Loading branch information
lotusirous committed Dec 13, 2021
1 parent 01ea604 commit 80a7c74
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"crypto/sha1"
"crypto/sha256"
"encoding/hex"
"errors"
"flag"
"fmt"
"hash"
Expand Down Expand Up @@ -64,9 +63,7 @@ func ReadFileInfo(path string) (string, os.FileInfo, error) {
return "", nil, err
}
fi, err := os.Stat(linkAbs)
if errors.Is(err, os.ErrNotExist) {
return "", nil, err
} else if err != nil {
if err != nil {
return "", nil, err
}

Expand Down

0 comments on commit 80a7c74

Please sign in to comment.