Skip to content

Commit 7a4bd26

Browse files
committed
Potential solution for #99
1 parent ac677d3 commit 7a4bd26

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

iamlivecore/service.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,11 @@ func Run() {
170170
defer pprof.StopCPUProfile()
171171
}
172172

173-
if *refreshRateFlag != 0 && *providerFlag == "aws" {
173+
if *refreshRateFlag != 0 {
174174
setTerminalRefresh()
175175
}
176176

177-
if *providerFlag == "aws" {
178-
setINIConfigAndFileFlush()
179-
}
177+
setINIConfigAndFileFlush()
180178

181179
loadMaps()
182180

@@ -219,13 +217,11 @@ func RunWithArgs(provider string, setIni bool, profile string, failsOnly bool, o
219217
defer pprof.StopCPUProfile()
220218
}
221219

222-
if *refreshRateFlag != 0 && *providerFlag == "aws" {
220+
if *refreshRateFlag != 0 {
223221
setTerminalRefresh()
224222
}
225223

226-
if *providerFlag == "aws" {
227-
setINIConfigAndFileFlush()
228-
}
224+
setINIConfigAndFileFlush()
229225

230226
loadMaps()
231227

0 commit comments

Comments
 (0)