From 86510a3f31789a8dcb9d9c74e123dca1cfa66cff Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Tue, 19 Dec 2023 14:44:14 +0100 Subject: [PATCH] rubocop --- _plugins/jekyll-topic-filter.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/_plugins/jekyll-topic-filter.rb b/_plugins/jekyll-topic-filter.rb index bd7b8499f6384f..c06e36a1ddf542 100644 --- a/_plugins/jekyll-topic-filter.rb +++ b/_plugins/jekyll-topic-filter.rb @@ -1,4 +1,5 @@ # frozen_string_literal: true + require 'json' require 'yaml' require './_plugins/gtn' @@ -972,8 +973,8 @@ def to_material(site, page) end def get_workflow(site, page, workflow) - mat = self.to_material(site, page) - mat['workflows'].select{|w| w['workflow'] == workflow }[0] + mat = to_material(site, page) + mat['workflows'].select { |w| w['workflow'] == workflow }[0] end end end