mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-26 13:11:53 +08:00
fix: resolve golangci-lint errcheck and staticcheck warnings
This commit is contained in:
@@ -44,7 +44,7 @@ func (p *CleanerPlugin) Scan(ctx context.Context, info *common.HostInfo, session
|
||||
for _, file := range files {
|
||||
if p.removeFile(file) {
|
||||
filesCleared++
|
||||
output.WriteString(fmt.Sprintf("清理文件: %s\n", file))
|
||||
_, _ = fmt.Fprintf(&output, "清理文件: %s\n", file)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ func (p *CleanerPlugin) Scan(ctx context.Context, info *common.HostInfo, session
|
||||
for _, file := range tempFiles {
|
||||
if p.removeFile(file) {
|
||||
filesCleared++
|
||||
output.WriteString(fmt.Sprintf("清理临时文件: %s\n", file))
|
||||
_, _ = fmt.Fprintf(&output, "清理临时文件: %s\n", file)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user