aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--jerry-core/api/jerry-snapshot.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/jerry-core/api/jerry-snapshot.c b/jerry-core/api/jerry-snapshot.c
index 583685c7..5f96dd45 100644
--- a/jerry-core/api/jerry-snapshot.c
+++ b/jerry-core/api/jerry-snapshot.c
@@ -1640,8 +1640,7 @@ jerry_parse_and_save_literals (const jerry_char_t *source_p, /**< script source
* Save all of the literals in C format as well.
*/
if (ecma_get_string_magic (literal_p) == LIT_MAGIC_STRING__COUNT
- && (!is_c_format
- || (is_c_format && ecma_string_is_valid_identifier (literal_p))))
+ && (!is_c_format || ecma_string_is_valid_identifier (literal_p)))
{
literal_count++;
}
@@ -1679,8 +1678,7 @@ jerry_parse_and_save_literals (const jerry_char_t *source_p, /**< script source
* Save all of the literals in C format as well.
*/
if (ecma_get_string_magic (literal_p) == LIT_MAGIC_STRING__COUNT
- && (!is_c_format
- || (is_c_format && ecma_string_is_valid_identifier (literal_p))))
+ && (!is_c_format || ecma_string_is_valid_identifier (literal_p)))
{
literal_array[literal_idx++] = literal_p;
}