From 9b8781322ef3d18430c3da37e9d6b1be3b832f8b Mon Sep 17 00:00:00 2001 From: nop Date: Thu, 5 Dec 2013 10:25:55 +0100 Subject: [PATCH] Small refactoring Use the dedicated function to check if we're running on Windows instead of checking the platform directly. --- python/ycm/completers/cs/cs_completer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/ycm/completers/cs/cs_completer.py b/python/ycm/completers/cs/cs_completer.py index 474c6289..01a26108 100755 --- a/python/ycm/completers/cs/cs_completer.py +++ b/python/ycm/completers/cs/cs_completer.py @@ -154,7 +154,7 @@ class CsharpCompleter( Completer ): command = [ omnisharp, '-p', str( self._omnisharp_port ), '-s', path_to_solutionfile ] - if not platform.startswith( 'win' ): + if utils.OnWindows(): command.insert(0, 'mono') filename_format = os.path.join( utils.PathToTempDir(),