Skip to content

Commit 3a46271

Browse files
committed
basic: TYPE: remove redundant error translation
1 parent 1ba2ad7 commit 3a46271

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

ttbasic/basic.cpp

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4628,16 +4628,8 @@ void itype() {
46284628
while(1) {
46294629
rc = bfs.textOut((char *)fname.c_str(), line, sc0.getHeight());
46304630
if (rc < 0) {
4631-
if (rc == -SD_ERR_OPEN_FILE) {
4632-
err = ERR_FILE_OPEN;
4633-
return;
4634-
} else if (rc == -SD_ERR_INIT) {
4635-
err = ERR_SD_NOT_READY;
4636-
return;
4637-
} else if (rc == -SD_ERR_NOT_FILE) {
4638-
err = ERR_BAD_FNAME;
4639-
return;
4640-
}
4631+
err = -rc;
4632+
return;
46414633
} else if (rc == 0) {
46424634
break;
46434635
}

0 commit comments

Comments
 (0)