1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

all: remove unnecessary IError() casts

This commit is contained in:
Alexander Medvednikov
2022-10-28 19:08:30 +03:00
parent daa2f90023
commit c6158e4519
28 changed files with 86 additions and 88 deletions

View File

@ -30,7 +30,7 @@ pub fn new_writer(config WriterConfig) &Writer {
// write writes a single record
pub fn (mut w Writer) write(record []string) !bool {
if !valid_delim(w.delimiter) {
return IError(&InvalidDelimiterError{})
return &InvalidDelimiterError{}
}
le := if w.use_crlf { '\r\n' } else { '\n' }
for n, field_ in record {