lib/pass_station/output.rb in pass-station-1.2.0 vs lib/pass_station/output.rb in pass-station-1.2.1

- old
+ new

@@ -30,10 +30,10 @@ # Output the data in the chosen format (search command) # @param formatter [String] Engine to use to format the data: +table+, +'pretty-table'+, +JSON+, +CSV+, +YAML+ # @return [Array<String>] formatted output def output_search(formatter) - return '[-] No result' if @search_result.empty? + return [] if @search_result.empty? output(formatter, @search_result) end # Highlight (colorize) a searched term in the input