Skip to content

Commit

Permalink
Replace trim -> strip
Browse files Browse the repository at this point in the history
There's no `trim` function in Julia `Base`.
  • Loading branch information
giordano committed Jan 30, 2025
1 parent 0d3c8df commit 54146bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Devices.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ function has_tpu()

try
for path in readdir(devices_dir; join=true, sort=false)
if trim(read(joinpath(path, "vendor"), String)) == _GOOGLE_PCI_VENDOR_ID &&
trim(read(joinpath(path, "device"), String)) in _TPU_PCI_DEVICE_IDS
if strip(read(joinpath(path, "vendor"), String)) == _GOOGLE_PCI_VENDOR_ID &&
strip(read(joinpath(path, "device"), String)) in _TPU_PCI_DEVICE_IDS
return true
end
end
Expand Down

0 comments on commit 54146bd

Please sign in to comment.