Skip to content

Commit 22055ae

Browse files
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)