From 4c9bbbe07bdd7633e8684d6928309325345e56d8 Mon Sep 17 00:00:00 2001 From: Michael Miller Date: Sun, 8 Dec 2019 15:11:23 -0700 Subject: [PATCH] Formatting --- src/spectator/mocks/type_registry.cr | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/spectator/mocks/type_registry.cr b/src/spectator/mocks/type_registry.cr index 0508c9f..c3cb0b6 100644 --- a/src/spectator/mocks/type_registry.cr +++ b/src/spectator/mocks/type_registry.cr @@ -2,17 +2,17 @@ module Spectator::Mocks module TypeRegistry extend self - alias Key = Tuple(String, Symbol) + alias Key = Tuple(String, Symbol) @@entries = {} of Key => Deque(MethodStub) def add(type_name : String, method_name : Symbol, source : Source, args : Arguments) : Nil key = {type_name, method_name} list = if @@entries.has_key?(key) - @@entries[key] - else - @@entries[key] = Deque(MethodStub).new - end + @@entries[key] + else + @@entries[key] = Deque(MethodStub).new + end list << NilMethodStub.new(method_name, source, args) end