diff --git a/vlib/builtin/option.v b/vlib/builtin/option.v index 230a8ea85a..5ce732468f 100644 --- a/vlib/builtin/option.v +++ b/vlib/builtin/option.v @@ -27,13 +27,9 @@ pub fn (err IError) str() string { else { // >> Hack to allow old style custom error implementations // TODO: remove once deprecation period for `IError` methods has ended - old_error_style := unsafe { voidptr(&err.msg) != voidptr(&err.code) } // if fields are not defined (new style) they don't have an offset between - if old_error_style { - '$err.type_name(): $err.msg' - } else { - // << - '$err.type_name(): $err.msg()' - } + // old_error_style := unsafe { voidptr(&err.msg) != voidptr(&err.code) } // if fields are not defined (new style) they don't have an offset between + // << + '$err.type_name(): $err.msg()' } } }