Skip to content

Commit c058df8

Browse files
committed
chore(axiom): remove if check
1 parent ace780f commit c058df8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

axiom/nr_errors.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,10 +141,8 @@ void nr_error_destroy(nr_error_t** error_ptr) {
141141
nr_free(error->klass);
142142
nr_free(error->span_id);
143143
nr_free(error->stacktrace_json);
144-
if ((NULL != error->error_file) && (NULL != error->error_context)) {
145-
nr_free(error->error_file);
146-
nr_free(error->error_context);
147-
}
144+
nr_free(error->error_file);
145+
nr_free(error->error_context);
148146
nr_realfree((void**)error_ptr);
149147
}
150148

0 commit comments

Comments
 (0)