8000 unix, file.c: adhere to coding conventions. · hellcoderz/micropython@e69b7e8 · GitHub
[go: up one dir, main page]

Skip to content

Commit e69b7e8

Browse files
committed
unix, file.c: adhere to coding conventions.
1 parent 41f768f commit e69b7e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

unix/file.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ typedef struct _mp_obj_fdfile_t {
2020

2121
#ifdef MICROPY_CPYTHON_COMPAT
2222
void check_fd_is_open(const mp_obj_fdfile_t *o) {
23-
if (o->fd < 0)
23+
if (o->fd < 0) {
2424
nlr_raise(mp_obj_new_exception_msg(&mp_type_ValueError, "I/O operation on closed file"));
25+
}
2526
}
2627
#else
2728
#define check_fd_is_open(o)

0 commit comments

Comments
 (0)
0