Use to_json call in cli/domains (#38219)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-03-16 14:03:20 +00:00
1 parent 1a464bc5ed
commit 8124f1581a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -214,7 +214,7 @@ module Mastodon::CLI
def stats_to_json(stats)
stats.compact!
say(Oj.dump(stats))
say(stats.to_json)
end
end
end
+1 -1
View File
@@ -87,7 +87,7 @@ RSpec.describe Mastodon::CLI::Domains do
end
def json_summary
Oj.dump('host.example': { activity: {} })
JSON.generate('host.example': { activity: {} })
end
end
end