From e69b7e82884cb7af5a3df4677da45f04060deac4 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 3 May 2014 17:04:31 +0100 Subject: [PATCH] unix, file.c: adhere to coding conventions. --- unix/file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unix/file.c b/unix/file.c index 1e7d3a9053..4588d96574 100644 --- a/unix/file.c +++ b/unix/file.c @@ -20,8 +20,9 @@ typedef struct _mp_obj_fdfile_t { #ifdef MICROPY_CPYTHON_COMPAT void check_fd_is_open(const mp_obj_fdfile_t *o) { - if (o->fd < 0) + if (o->fd < 0) { nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file")); + } } #else #define check_fd_is_open(o)