Skip to content

Commit

Permalink
Please RuboCop with whitespace.
Browse files Browse the repository at this point in the history
  • Loading branch information
mvidner committed Jan 26, 2017
1 parent 61e2a20 commit 6e2994f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 12 deletions.
4 changes: 2 additions & 2 deletions src/lib/installation/clients/inst_casp_overview.rb
Expand Up @@ -102,13 +102,13 @@ def quadrant_layout(upper_left:, lower_left:, upper_right:, lower_right:)
def content
dashboard = Installation::Widgets::DashboardPlace.new
quadrant_layout(
upper_left: VBox(
upper_left: VBox(
::Widgets::RegistrationCode.new,
::Users::PasswordWidget.new(little_space: true),
# use english us as default keyboard layout
::Y2Country::Widgets::KeyboardSelectionCombo.new("english-us")
),
lower_left: VBox(
lower_left: VBox(
Installation::Widgets::SystemRole.new(dashboard),
dashboard,
Tune::Widgets::SystemInformation.new
Expand Down
1 change: 0 additions & 1 deletion src/lib/installation/widgets/mocked.rb
Expand Up @@ -15,4 +15,3 @@ def label
end
end
end

10 changes: 5 additions & 5 deletions src/lib/installation/widgets/overview.rb
Expand Up @@ -51,10 +51,10 @@ def label

def items
d = Yast::WFM.CallFunction(proposal_client,
[
"MakeProposal",
{"simple_mode" => true}
])
[
"MakeProposal",
{ "simple_mode" => true }
])
d["label_proposal"]
end

Expand All @@ -63,7 +63,7 @@ def handle(_event)
:redraw
end

private
private

def button_id
# an arbitrary unique id
Expand Down
5 changes: 1 addition & 4 deletions src/lib/installation/widgets/system_role.rb
Expand Up @@ -26,7 +26,6 @@
Yast.import "ProductControl"
Yast.import "ProductFeatures"


module Installation
module Widgets
class DashboardURL < CWM::InputField
Expand Down Expand Up @@ -98,7 +97,7 @@ def items

def help
Yast::ProductControl.GetTranslatedText("roles_help") + "\n\n" +
roles_description.map { |r| r[:label] + "\n\n" + r[:description]}.join("\n\n\n")
roles_description.map { |r| r[:label] + "\n\n" + r[:description] }.join("\n\n\n")
end

NON_OVERLAY_ATTRIBUTES = [
Expand All @@ -107,7 +106,6 @@ def help
].freeze
private_constant :NON_OVERLAY_ATTRIBUTES


def store
log.info "Applying system role '#{value}'"
features = raw_roles.find { |r| r["id"] == value }
Expand All @@ -118,7 +116,6 @@ def store
self.class.original_role_id = value
end


private

def raw_roles
Expand Down

0 comments on commit 6e2994f

Please sign in to comment.