Skip to content

Commit

Permalink
Fixed Style/ExtraSpacing
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jun 9, 2016
1 parent ab5835d commit 0ee7ec4
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion library/commandline/src/modules/CommandLine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1271,7 +1271,7 @@ def Init(cmdlineinfo, args)
def Scan
res = Convert.to_string(SCR.Read(path(".dev.tty")))
return nil if res.nil?
String.ParseOptions(res, "separator" => " ")
String.ParseOptions(res, "separator" => " ")
end

# Set prompt and read input from command line
Expand Down
10 changes: 5 additions & 5 deletions library/cwm/testsuite/tests/t1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,34 +80,34 @@ def main
DUMP("Handle")

DUMP("- Both will run")
@ret = CWM.handleWidgets(@widget_data, "ID" => :event)
@ret = CWM.handleWidgets(@widget_data, "ID" => :event)
DUMP(Builtins.sformat("Returned %1", @ret))
DUMP("- First causes event loop finish")
Ops.set(
@widget_data,
[0, "handle"],
fun_ref(method(:w1_handle_symbol), "symbol (string, map)")
)
@ret = CWM.handleWidgets(@widget_data, "ID" => :event)
@ret = CWM.handleWidgets(@widget_data, "ID" => :event)
DUMP(Builtins.sformat("Returned %1", @ret))

DUMP("=========================================")
DUMP("Validate")
DUMP("- Run both")
@ret = CWM.validateWidgets(@widget_data, "ID" => :event)
@ret = CWM.validateWidgets(@widget_data, "ID" => :event)
DUMP(Builtins.sformat("Returned %1", @ret))
DUMP("- First fails")
Ops.set(
@widget_data,
[0, "validate_function"],
fun_ref(method(:w1_validat_false), "boolean (string, map)")
)
@ret = CWM.validateWidgets(@widget_data, "ID" => :event)
@ret = CWM.validateWidgets(@widget_data, "ID" => :event)
DUMP(Builtins.sformat("Returned %1", @ret))

DUMP("=========================================")
DUMP("Save")
CWM.saveWidgets(@widget_data, "ID" => :event)
CWM.saveWidgets(@widget_data, "ID" => :event)

nil
end
Expand Down
4 changes: 2 additions & 2 deletions library/cwm/testsuite/tests/t2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ def main
DUMP("=========================================")
DUMP("Handle")

@ret = CWM.handleWidgets(@widget_data, "ID" => :_tp_edit)
@ret = CWM.handleWidgets(@widget_data, "ID" => :_tp_edit)
DUMP(Builtins.sformat("Returned %1", @ret))
Ops.set(
@widget_data,
[0, "options", "a", "table", "handle"],
fun_ref(method(:a_handle), "symbol (any, string, map)")
)
@ret = CWM.handleWidgets(@widget_data, "ID" => :_tp_edit)
@ret = CWM.handleWidgets(@widget_data, "ID" => :_tp_edit)
DUMP(Builtins.sformat("Returned %1", @ret))

DUMP("=========================================")
Expand Down
2 changes: 1 addition & 1 deletion library/log/examples/logviewcore1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main
)
)

LogViewCore.Start(Id(:log), "file" => @file)
LogViewCore.Start(Id(:log), "file" => @file)

loop do
@widget = UI.TimeoutUserInput(250)
Expand Down
2 changes: 1 addition & 1 deletion library/log/examples/logviewcore2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main
)
)

LogViewCore.Start(Id(:log), "file" => @file, "grep" => @grep)
LogViewCore.Start(Id(:log), "file" => @file, "grep" => @grep)

loop do
@widget = UI.TimeoutUserInput(250)
Expand Down
2 changes: 1 addition & 1 deletion library/log/examples/logviewcore3.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def main
)
)

LogViewCore.Start(Id(:log), "command" => @command)
LogViewCore.Start(Id(:log), "command" => @command)

loop do
@widget = UI.TimeoutUserInput(250)
Expand Down
2 changes: 1 addition & 1 deletion library/log/src/modules/LogViewCore.rb
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def Start(widget, d)
Builtins.y2milestone("Calling process agent with command %1", command)

@id = Convert.to_integer(
SCR.Execute(path(".process.start_shell"), command, "tty" => true)
SCR.Execute(path(".process.start_shell"), command, "tty" => true)
)
@is_running = true

Expand Down
2 changes: 1 addition & 1 deletion library/network/src/lib/network/susefirewalld.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def initialize
@known_firewall_zones = ["block", "dmz", "drop", "external", "home",
"internal", "public", "trusted", "work"]
# map defines zone name for all known firewall zones
@zone_names = {
@zone_names = {
# TRANSLATORS: Firewall zone name - used in combo box or dialog title
"block" => _(
"Block Zone"
Expand Down
2 changes: 1 addition & 1 deletion library/network/src/modules/NetworkInterfaces.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1530,7 +1530,7 @@ def Delete2(name)
def DeleteAlias(device, aid)
alias_ = Builtins.sformat("%1#%2", device, aid)
Builtins.y2milestone("Deleting alias: %1", alias_)
@Deleted << alias_
@Deleted << alias_
true
end

Expand Down
2 changes: 1 addition & 1 deletion library/network/src/modules/NetworkService.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def main
def RunSystemCtl(service, action)
cmd = Builtins.sformat("%1 %2 %3.service", SYSTEMCTL, action, service)
ret = Convert.convert(
SCR.Execute(path(".target.bash_output"), cmd, "TERM" => "raw"),
SCR.Execute(path(".target.bash_output"), cmd, "TERM" => "raw"),
from: "any",
to: "map <string, any>"
)
Expand Down
2 changes: 1 addition & 1 deletion library/packages/src/lib/packages/repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def initialize(repo_id:, name:, enabled:, autorefresh:, url:)
@name = name
@enabled = enabled
@autorefresh = autorefresh
@url = url
@url = url
end

# Return repository scheme
Expand Down
2 changes: 1 addition & 1 deletion library/packages/src/modules/PackageCallbacks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3003,7 +3003,7 @@ def layout_popup(message, button_box, info_on)
HBox(
# maybe more icon types could be used
# "info, "warning", "error"
Icon.Image("warning", "margin_right" => 2),
Icon.Image("warning", "margin_right" => 2),
Left(Label(message))
),
VSpacing(0.1),
Expand Down
2 changes: 1 addition & 1 deletion library/sequencer/testsuite/tests/WS_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def main
TEST(->() { Sequencer.WS_check({}, {}) }, [], nil)
TEST(->() { Sequencer.WS_check(@aliases1, @sequence1) }, [], nil)

TEST(->() { Sequencer.WS_check({}, "ws_start" => :ws_finish) }, [], nil)
TEST(->() { Sequencer.WS_check({}, "ws_start" => :ws_finish) }, [], nil)

@clicks = nil
@cur = -1
Expand Down
2 changes: 1 addition & 1 deletion library/sequencer/testsuite/tests/Wizard0.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def main
TEST(->() { Sequencer.Run(nil, {}) }, [], nil)
TEST(->() { Sequencer.Run({}, @Sequence) }, [], nil)
TEST(->() { Sequencer.Run(@Aliases, {}) }, [], nil)
TEST(->() { Sequencer.Run({}, "ws_start" => :ok) }, [], nil)
TEST(->() { Sequencer.Run({}, "ws_start" => :ok) }, [], nil)

nil
end
Expand Down
2 changes: 1 addition & 1 deletion library/types/src/modules/String.rb
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ def TextTable(header, items, options)
items.each_with_index do |row, rows_counter|
table << table_left_padding
table << table_row(row, cols_lenghts, current_horizontal_padding)
table << "\n" if (rows_counter + 1) < rows_count
table << "\n" if (rows_counter + 1) < rows_count
end
table
end
Expand Down

0 comments on commit 0ee7ec4

Please sign in to comment.