refactor: use struct equality instead of comparing each composition

Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
pull/13586/head
Jesse Simpson 6 months ago
parent ac98e977c3
commit 48922e21d1
No known key found for this signature in database
GPG Key ID: 237495C89AB0AAFC

@ -399,9 +399,7 @@ func reformatExecErrorMsg(filename string, err error) error {
}
if len(fileLocations) > 0 {
lastErr := fileLocations[len(fileLocations)-1]
if lastErr.message == traceable.message &&
lastErr.location == traceable.location &&
lastErr.executedFunction == traceable.executedFunction {
if lastErr == traceable {
current = errors.Unwrap(current)
continue
}

Loading…
Cancel
Save