lib/tapioca/dsl/compilers/state_machines.rb in tapioca-0.11.17 vs lib/tapioca/dsl/compilers/state_machines.rb in tapioca-0.12.0
- old
+ new
@@ -1,14 +1,8 @@
# typed: strict
# frozen_string_literal: true
-begin
- require "state_machines"
-rescue LoadError
- # means StateMachines is not installed,
- # so let's not even define the compiler.
- return
-end
+return unless defined?(StateMachines)
module Tapioca
module Dsl
module Compilers
# `Tapioca::Dsl::Compilers::StateMachines` generates RBI files for classes that setup a