Ruby

Ruby

Made by DeepSource

Duplicate require/require_relative blocks were found RB-LI1096

Bug risk
Major

Requiring, or relatively requiring same file/module twice is unnecessary and either of the blocks can be removed as they both serve the same purpose.

Bad practice

require 'json'
require 'json'
require 'yaml'

Recommended

require 'json'
require 'yaml'