Skip to content

Commit 19c7c19

Browse files
committed
style: check_empty_op rename to is_nothing_to_do
1 parent 10953f7 commit 19c7c19

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/subcommand/upgrade.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ use crate::OmaArgs;
2828
use crate::UpgradeArgs;
2929

3030
use super::remove::ask_user_do_as_i_say;
31-
use super::utils::check_empty_op;
3231
use super::utils::handle_no_result;
32+
use super::utils::is_nothing_to_do;
3333
use super::utils::lock_oma;
3434
use super::utils::no_check_dbus_warn;
3535
use super::utils::RefreshRequest;
@@ -131,7 +131,7 @@ pub fn execute(
131131
let remove = &op.remove;
132132
let disk_size = &op.disk_size;
133133

134-
if check_empty_op(install, remove) {
134+
if is_nothing_to_do(install, remove) {
135135
return Ok(0);
136136
}
137137

src/subcommand/utils.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl<'a> CommitRequest<'a> {
202202
let remove = &op.remove;
203203
let disk_size = &op.disk_size;
204204

205-
if check_empty_op(install, remove) {
205+
if is_nothing_to_do(install, remove) {
206206
return Ok(0);
207207
}
208208

@@ -267,7 +267,7 @@ impl<'a> CommitRequest<'a> {
267267
}
268268
}
269269

270-
pub(crate) fn check_empty_op(install: &[InstallEntry], remove: &[RemoveEntry]) -> bool {
270+
pub(crate) fn is_nothing_to_do(install: &[InstallEntry], remove: &[RemoveEntry]) -> bool {
271271
if install.is_empty() && remove.is_empty() {
272272
success!("{}", fl!("no-need-to-do-anything"));
273273
return true;

0 commit comments

Comments
 (0)