Skip to content

Commit d84a6a2

Browse files
committed
2 parents b09ddfd + 36e46df commit d84a6a2

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

internal/exercises/solutions/110_recover/recover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ func Run(n int) (recoveredValue interface{}) {
3030
// 'recoveredValue' is returned. It will be the panic value if
3131
// a panic occurred and was recovered, or nil otherwise.
3232
return recoveredValue
33-
}
33+
}

internal/exercises/templates/110_recover/recover.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ func Run(n int) (recoveredValue interface{}) {
2222
DoWork(n)
2323

2424
return recoveredValue
25-
}
25+
}

internal/exercises/templates/110_recover/recover_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,4 @@ func TestRun_WithPanic(t *testing.T) {
2525
if resultAsString, ok := result.(string); !ok || resultAsString != expectedPanicValue {
2626
t.Errorf("Run(-5) recovered with unexpected value. Expected: %q, Got: %v (%T)", expectedPanicValue, result, result)
2727
}
28-
}
28+
}

0 commit comments

Comments
 (0)