mirror of
https://github.com/restic/restic.git
synced 2025-12-11 18:47:50 +00:00
improve fprintf related error handling
This commit is contained in:
@@ -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