mirror of
https://github.com/glanceapp/glance.git
synced 2025-06-21 18:31:24 +02:00
Use new range syntax
This commit is contained in:
parent
19a89645a1
commit
5d12d934b8
@ -315,7 +315,7 @@ func configFilesWatcher(
|
|||||||
|
|
||||||
// wait for file to maybe get created again
|
// wait for file to maybe get created again
|
||||||
// see https://github.com/glanceapp/glance/pull/358
|
// see https://github.com/glanceapp/glance/pull/358
|
||||||
for i := 0; i < 10; i++ {
|
for range 10 {
|
||||||
if _, err := os.Stat(event.Name); err == nil {
|
if _, err := os.Stat(event.Name); err == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user