First set of licensing changes
[mono.git] / mono / metadata / loader.c
index 52cbd729588549a33eac9cd5b4327da77ebe0a38..f9b83480b52262a3647136ce9aeb5ebf96025386 100644 (file)
@@ -17,6 +17,7 @@
  * TODO:
  *   This should keep track of the assembly versions that we are loading.
  *
+ * Licensed under the MIT license. See LICENSE file in the project root for full license information.
  */
 #include <config.h>
 #include <glib.h>
@@ -2883,9 +2884,7 @@ mono_method_get_header (MonoMethod *method)
 {
        MonoError error;
        MonoMethodHeader *header = mono_method_get_header_checked (method, &error);
-       mono_loader_assert_no_error ();
-       if (!header)
-               mono_loader_set_error_from_mono_error (&error);
+       mono_error_cleanup (&error);
        return header;
 }