Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go.mod from 1.16 to 1.18 #642

Merged
merged 16 commits into from Sep 5, 2022
Merged

go.mod from 1.16 to 1.18 #642

merged 16 commits into from Sep 5, 2022

Conversation

yseto
Copy link
Contributor

@yseto yseto commented Aug 30, 2022

  • go.mod from 1.16 to 1.18
  • replace lint
  • some fixes

SA1030: 'bitSize' argument is invalid, must be either 32 or 64 (staticcheck)

ParseFloat will behave "64-bit" if given the wrong argument.
SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
@@ -41,7 +41,7 @@ func sizeValue(input string) (float64, error) {
num := r[0][1]
unit := r[0][2]

size, err = strconv.ParseFloat(num, 10)
size, err = strconv.ParseFloat(num, 64)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment on lines 562 to 566
for _, entry := range entries {
fi, err := entry.Info()
if err == nil && detectInode(fi) == inode {
return filepath.Join(dir, fi.Name()), nil
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Errors occurred in reading FileInfo will be ignored. Is it intended?

see fs.DirEntry

If the file has been removed or renamed
since the directory read, Info may return an error satisfying errors.Is(err, ErrNotExist).

@yseto yseto merged commit 95e3816 into master Sep 5, 2022
@yseto yseto deleted the update branch September 5, 2022 08:13
@yseto
Copy link
Contributor Author

yseto commented Sep 5, 2022

Thanks for your review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants