Skip to content

Commit

Permalink
Use is_empty instead of call equal
Browse files Browse the repository at this point in the history
  • Loading branch information
isbm committed Nov 30, 2024
1 parent f71b096 commit e31789d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsysinspect/src/intp/actproc/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ impl ActionResponse {

/// Return state Id of the action
pub fn sid(&self) -> &str {
if self.sid.eq("") {
if self.sid.is_empty() {
"$"
} else {
&self.sid
Expand Down

0 comments on commit e31789d

Please sign in to comment.