Skip to content

Commit

Permalink
Avoid checking if plugin is light twice
Browse files Browse the repository at this point in the history
When getting the scale of a medium plugin.
  • Loading branch information
Ortham committed Oct 7, 2024
1 parent 26b42f5 commit 2406c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ impl Plugin {
fn scale(&self) -> PluginScale {
if self.is_light_plugin() {
PluginScale::Small
} else if self.is_medium_plugin() {
} else if self.is_medium_flag_set() {
PluginScale::Medium
} else {
PluginScale::Full
Expand Down

0 comments on commit 2406c3b

Please sign in to comment.