Skip to content
Snippets Groups Projects
Commit 3d278940 authored by Lionell Loh Jian An's avatar Lionell Loh Jian An Committed by Lionell
Browse files

Apply suggestions from code review


Code review changes

Co-authored-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 88eae063
No related branches found
No related tags found
No related merge requests found
......@@ -2208,13 +2208,15 @@ class Formula
# @!attribute [w]
# The SPDX ID of the open-source license that the formula uses.
# Shows when running `brew info`.
# Multiple licenses means that the software is licensed under multiple licenses.
# Do not use multiple licenses if e.g. different parts are under different licenses.
#
# <pre>license "BSD-2-Clause"</pre>
def license args=nil
if args.blank?
def license(args = nil)
if args.nil?
return @licenses
else
@licenses = args.class == String ? [args] : args
@licenses = Array(args)
puts @licenses
# license.
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment