Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
leonovk committed Nov 1, 2024
1 parent ad6a60c commit 0e415f7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/wire_guard/stat_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,11 @@ def build_latest_data(data)

def build_traffic_data(data)
{
# rubocop:disable Style/SafeNavigationChainLength
# TODO: Perhaps in the future it would be worthwhile to redesign this place.
received: data[-6..-5]&.join(' ')&.to_unit&.base_scalar.to_i,
sent: data[-3..-2]&.join(' ')&.to_unit&.base_scalar.to_i
# rubocop:enable Style/SafeNavigationChainLength
}
end

Expand Down

0 comments on commit 0e415f7

Please sign in to comment.