Skip to content

Commit 6b64cf6

Browse files
committed
Remove not-needed call to inc_loc.valid?
1 parent b777049 commit 6b64cf6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

app/services/synchronize_source_service.rb

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def synchronize_localization(loc)
2626
inc_loc.localization_key_is_deleted = localization_key_deleted?(loc)
2727
inc_loc.localization_key = find_localization_key(inc_loc)
2828
inc_loc.translated_value = loc['value']
29-
return unless inc_loc.valid? # this also triggers connection with localization
3029
return if inc_loc.duplicated?(loc['value'])
3130

3231
inc_loc.save!

0 commit comments

Comments
 (0)