Skip to content

Commit

Permalink
Fixing unnecessary code
Browse files Browse the repository at this point in the history
Fixing unnecessary comparison within if statement.
  • Loading branch information
bauca authored Aug 5, 2017
1 parent a31326d commit f5f0fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Graphics-Switcher
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function CheckForCurrentVideoCardInUse {
local _VIDEO_CARD=`glxinfo|egrep "OpenGL vendor|OpenGL renderer*"`
if [[ $_VIDEO_CARD == *"NVIDIA"* && $_VIDEO_CARD == *"GeForce"* ]]; then
CURRENT_VIDEO_CARD="NVIDIA"
elif [[ $_VIDEO_CARD == *"Intel"* && $_VIDEO_CARD == *"Intel"* ]]; then
elif [[ $_VIDEO_CARD == *"Intel"* ]]; then
CURRENT_VIDEO_CARD="INTEL"
else
ErrorHandler
Expand Down

0 comments on commit f5f0fd0

Please sign in to comment.