Skip to content

Commit d0d307c

Browse files
committed
set sort_order initialization on AbstractArtifact class to NULL
1 parent 7370c0f commit d0d307c

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

Library/Homebrew/cask/artifact/abstract_artifact.rb

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -149,41 +149,7 @@ def initialize(cask, *dsl_args)
149149
@dsl_key = nil
150150
@english_article = nil
151151
@english_name = nil
152-
@sort_order = [
153-
PreflightBlock,
154-
# The `uninstall` stanza should be run first, as it may
155-
# depend on other artifacts still being installed.
156-
Uninstall,
157-
Installer,
158-
# `pkg` should be run before `binary`, so
159-
# targets are created prior to linking.
160-
# `pkg` should be run before `app`, since an `app` could
161-
# contain a nested installer (e.g. `wireshark`).
162-
Pkg,
163-
[
164-
App,
165-
Suite,
166-
Artifact,
167-
Colorpicker,
168-
Prefpane,
169-
Qlplugin,
170-
Mdimporter,
171-
Dictionary,
172-
Font,
173-
Service,
174-
InputMethod,
175-
InternetPlugin,
176-
KeyboardLayout,
177-
AudioUnitPlugin,
178-
VstPlugin,
179-
Vst3Plugin,
180-
ScreenSaver,
181-
],
182-
Binary,
183-
Manpage,
184-
PostflightBlock,
185-
Zap,
186-
].each_with_index.flat_map { |classes, i| Array(classes).map { |c| [c, i] } }.to_h
152+
@sort_order = nil
187153
end
188154

189155
def config

0 commit comments

Comments
 (0)