mirror of
https://github.com/restic/restic.git
synced 2026-11-06 15:29:21 +00:00
improve fprintf related error handling
This commit is contained in:
1 parent
41fa41b28b
commit
569a117a1d
10 files changed
+43
-33
No files matched your search
@@ -120,7 +120,7 @@ func goroutineNum() int {
|
||||
runtime.Stack(b, false)
|
||||
var num int
|
||||
|
||||
fmt.Sscanf(string(b), "goroutine %d ", &num)
|
||||
_, _ = fmt.Sscanf(string(b), "goroutine %d ", &num)
|
||||
return num
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user