Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 22055ae

Browse files
bitfieldwaltervargas
andcommitted
Remove unnecessary type assertion
Co-authored-by: Walter Vargas <walter.vargas@n26.com>
1 parent 95cd539 commit 22055ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎script.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ func (ra ReadAutoCloser) Close() error {
942942
if ra.r == nil {
943943
return nil
944944
}
945-
return ra.r.(io.Closer).Close()
945+
return ra.r.Close()
946946
}
947947

948948
// Read reads up to len(b) bytes from ra's reader into b. It returns the number

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /