Skip to content

Commit 0d279ff

Browse files
committed
Apply Rubocop fixes
1 parent ece3926 commit 0d279ff

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

lib/imap/backup/cli/local.rb

+8-7
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,21 @@ def show_emails_as_text(serializer, uids)
171171
serializer.each_message(uids).each do |message|
172172
if uids.count > 1
173173
Kernel.puts <<~HEADER
174-
#{'-' * 80}
175-
#{format('| UID: %-71s |', message.uid)}
176-
#{'-' * 80}
174+
#{'-' * 80}
175+
#{format('| UID: %-71s |', message.uid)}
176+
#{'-' * 80}
177177
HEADER
178178
end
179179
Kernel.puts message.body
180180
end
181181
end
182182

183183
def config
184-
@config ||= begin
185-
non_logging_options = Logger.setup_logging(options)
186-
load_config(**non_logging_options)
187-
end
184+
@config ||=
185+
begin
186+
non_logging_options = Logger.setup_logging(options)
187+
load_config(**non_logging_options)
188+
end
188189
end
189190
end
190191
end

lib/imap/backup/cli/transfer.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ def ensure_no_prefix_or_delimiter_parameters!
9696
if destination_delimiter
9797
raise "--automatic-namespaces is incompatible with --destination-delimiter"
9898
end
99-
if destination_prefix
100-
raise "--automatic-namespaces is incompatible with --destination-prefix"
101-
end
99+
raise "--automatic-namespaces is incompatible with --destination-prefix" if destination_prefix
102100
raise "--automatic-namespaces is incompatible with --source-delimiter" if source_delimiter
103101
raise "--automatic-namespaces is incompatible with --source-prefix" if source_prefix
104102
end

0 commit comments

Comments
 (0)